trace MKFS
Yann Droneaud
ydroneaud at opteya.com
Fri Jan 4 10:51:02 EST 2013
> Hi,
>
> I want to trace the overall flow of mkfs inside linux kernel. Specifically
> want to know which
> kernel fs data structures are affected when we run "mkfs" ?
> What all "mkfs" command writes on the block device when we run the
> command?
> Are there any good documents which can explain the same?
There's nothing special about mkfs (mkfs.ext2, mkfs.msdos, mkfs.xfs,
mkfs.btrfs, etc.) regarding the kernel.
>From the kernel point of view, it's a userspace program that write to a
block device, eg. you could use 'dd' to achieve the same result (using a
filesystem image).
The kernel is using the "output" of mkfs later, when you issue "mount"
command to mount the filesystem stored on the block device.
Regards.
--
Yann Droneaud
OPTEYA
More information about the Kernelnewbies
mailing list