[lkml]   [2001]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectReg-filling of super_block in a filesystem
In the minix_read_super() function we try to read a block number 1 from
the device.

set_blocksize(dev, BLOCK_SIZE);/*defined in fs/buffer.c*/
if (!(bh = bread(dev,1,BLOCK_SIZE)))
goto out_bad_sb;
ms = (struct minix_super_block *) bh->b_data;

In the above, bh->b_data is assigned to ms. This minix_read_super function
gets called when we mount the minix file system. Then when does this block
1 of the device gets filled. Does it get filled when we do mkfs? Please
let me know this.

Thanks in advance.
Warm regards,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:58    [W:0.041 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site