Print information about the partition and offset child device is created
for. This is very helpful to understand the process of mounting the
filesystems.
Signed-off-by: Waldemar Kozaczuk <
jwkoz...@gmail.com>
---
fs/devfs/device.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/devfs/device.cc b/fs/devfs/device.cc
index 3a5c9f7c..4730f411 100644
--- a/fs/devfs/device.cc
+++ b/fs/devfs/device.cc
@@ -142,6 +142,8 @@ void read_partition_table(struct device *dev)
new_dev->max_io_size = dev->max_io_size;
new_dev->private_data = dev->private_data;
device_set_softc(new_dev, device_get_softc(dev));
+
+ kprintf("devfs: created device %s for a partition at offset:%ld with size:%ld\n", dev_name, new_dev->offset, new_dev->size);
}
sched_unlock();
--
2.35.1