Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, How can i read out the superblock of a filesystem? Thank....
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6

    read the superblock

    Hi,
    How can i read out the superblock of a filesystem?

    Thank.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Post

    I'm assume , you are referring to ext* file system. Checkout the API provided by ext2fs lib.

    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    I already watch ext2fs, in fact, in what file for the kernel, I can write eg printk to read the information in the superblock?

    What do the function get_super(...) in the file super.c?

    Thank

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I already watch ext2fs, in fact, in what file for the kernel, I can write eg printk to read the information in the superblock?

    What do the function get_super(...) in the file super.c?
    Sorry I don't understand your situation. Are you trying to modify the source of ext2fs?
    or Are you trying to get informations from super block from user space. If so then you can use
    The EXT2FS Library (version 1.35): Table of Contents
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    I trying to get informations from super block not from user space but kernel space.

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I still don't understand your requirement. In case , if you doing kernel programming with ext2fs then
    Dropping a mail to ext3/2 devel list is the best option https://www.redhat.com/mailman/listinfo/ext3-users- who might help you.


    If you want to access and display superblock using user space tools (like debugfs or giis) then ext2fs lib is the way to go.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...