Skip to contentSkip to conversation

reading superblock

DISCUSSION Rohit Sharma 2 participants 2 messages Sep 15, 2008 – Sep 16, 2008

lore
Share & tools
lore
#0 lore raw

I want to read ext2 superblock and display the structure.

which function do i need to call for that. is it ext2_get_sb() or ext2_fill_super() or both ??

this is the function prototype:
static int ext2_fill_super(struct super_block *sb, void *data, int silent)

what are the parameters data and silent used for.

#1 lore raw

Hello Rohit,

I hope you are doing this for getting hand on ext2/ext3 file systems.
So what I'll suggest is try to read the on disk data structures and read the Super Block. That will really help you to understand some part of file systems instead relying on some existing functions. I've posted one article regarding reading super block you can look at that...
http://bytes.com/forum/thread771405.html

Regards,
Ashish

Quoted 14 lines · Rohit Sharma

From: Rohit Sharma <[email protected]>
Subject: reading superblock
To: "Kernelnewbies" <[email protected]>
Cc: "ext4" <[email protected]>
Date: Monday, 15 September, 2008, 10:11 PM
I want to read ext2 superblock and display the structure.

which function do i need to call for that. is it ext2_get_sb() or ext2_fill_super() or both ??

this is the function prototype:
static int ext2_fill_super(struct super_block *sb, void *data, int silent)

Quoted 7 lines

what are the parameters data and silent used for.

--
To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Get an email ID as [email protected] or [email protected]. Click here http://in.promos.yahoo.com/address