Reg-filling of super_block in a filesystem

SATHISH.J (sathish.j@tatainfotech.com)
Mon, 27 Aug 2001 11:32:33 +0530 (IST)


Hi,
In the minix_read_super() function we try to read a block number 1 from
the device.

lock_super(s);
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,
sathish.j

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/