lkml.org 
[lkml]   [2001]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectReg-filling of super_block in a filesystem
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/

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