[PATCH] devfs: print details of mounted partition

4 views
Skip to first unread message

Waldemar Kozaczuk

unread,
Jul 17, 2022, 12:37:21 AM7/17/22
to osv...@googlegroups.com, Waldemar Kozaczuk
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

Commit Bot

unread,
Jul 17, 2022, 10:57:05 AM7/17/22
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

devfs: print details of mounted partition

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>

---
diff --git a/fs/devfs/device.cc b/fs/devfs/device.cc
Reply all
Reply to author
Forward
0 new messages