Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Plz suggest how i can capture the inode count in the file system and how i can put that count in to the variable for further operations .... Its ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    2

    C prgram to capture 'inode' count in file system

    Hi,

    Plz suggest how i can capture the inode count in the file system and how i can put that count in to the variable for further operations ....

    Its very urgent .....request yout ot send the response...

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

    Post

    If you are using ext2/ext3 file system,then get super block details from offset 1024 and from there get the free/used inode count on your machine.

    Check out ext3/ext2 File system tools like debugfs or ext2ed or e2fsprogs or giis.
    - 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
    Feb 2009
    Posts
    2
    thanks for the reply.

    I need to capture it in variable , eg : inode_count = 6 were free. how i can do it from c program

Posting Permissions

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