Results 1 to 6 of 6

Thread: inode number !!!

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Answers
    15

    inode number !!!

    As we know unix system uses inode number to uniquely identify a file in a file system, and these inode numbers are generated by the system. My question is what if the system runs out of inode number. Shall i be able to create more files or not ??? If not then what shall i do to be able to create more files ???


  2. #2
    Contributing Member
    Join Date
    Dec 2007
    Answers
    46

    Re: inode number !!!

    Quote Originally Posted by n.ashis View Post
    As we know unix system uses inode number to uniquely identify a file in a file system, and these inode numbers are generated by the system. My question is what if the system runs out of inode number. Shall i be able to create more files or not ??? If not then what shall i do to be able to create more files ???
    Inodes are the in-memory representation of files. This means that all the information needed about files (like disk block nos for the file data, permissions, etc) are stored in the inode structure. So, for each file that has been opened, there will be an inode structure.

    The maximum number of inode structures are determined by tunables that can be defined based on how the operating system will be used. For example, for a file server, set the maximum to a huge value. For a non-file intensive use, set the max to a lower value.

    You are right in that the inodes will ultimately run out as there is a finite number of them When they run out, and we need to open a new file, the file system executes a process called vnode/inode recyling. What this means is that the inode contents for the current file (meta data, etc) and flushed to disk and the same inode is reused for another file.

    Hope this helps.


  3. #3
    Junior Member
    Join Date
    Nov 2007
    Answers
    6

    Re: inode number !!!

    File system depending on inode numbers.
    inode having starting address of the boot block.
    inode having lot of data.
    each inode ocuupy 64kb size.


  4. #4
    Junior Member
    Join Date
    Jul 2007
    Answers
    2

    Re: inode number !!!

    inode is pointer of the file. it contain file ownership,permission, ans security.

    if inode is full then after you have to take the backup of all data and format the system... then after you can give size of the inode at the time of putting file system with newfs command....


  5. #5
    Contributing Member
    Join Date
    Dec 2007
    Answers
    46

    Re: inode number !!!

    Quote Originally Posted by udayn View Post
    inode is pointer of the file. it contain file ownership,permission, ans security.

    if inode is full then after you have to take the backup of all data and format the system... then after you can give size of the inode at the time of putting file system with newfs command....
    This is wrong. Read my earlier post to get an idea or read a Unix Internals book like the one authored by Uresh Vahalia or some other book like that. Specifically, concentrate on the concept of inode recycling.

    Hope that helps.


  6. #6
    Junior Member
    Join Date
    Sep 2007
    Answers
    10

    Re: inode number !!!

    It is better for you to read the DESIGN OF UNIX OS book.
    There they give all those things.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact