top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which data structure is used to maintain file identification in Linux/Unix based system and what are its contents?

0 votes
442 views
Which data structure is used to maintain file identification in Linux/Unix based system and what are its contents?
posted Feb 27, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The data structure that is used to maintain the In-Core Inode Information is "Inode Table". This table (logical representation) has the following information abt the file:-
- type of the file
- permissions on the link
- Owner Id
- Group Id
- File Size
- Arrayy of 13 pointers to a file or another entry in the inode table.
Besides these, the UNIX system maintains 2 other data structures namely -
User File Descriptor Table - A per Process table maintains information of open files by single process
PK - PID , FileDescriptor
2. File Table - A Global Table that maintains the information of all the open files.
PK - FileDescriptor

answer Mar 1, 2016 by Manikandan J
...