Re: Re: inode numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-10-11 at 19:04 +0200, Jakko Pastuchio wrote:
> do you know of any example of code that access files by their inode
> numbers ?

Each file system needs to know how to take an inode number and translate
it to an inode.  For example, in ext2, ext2_read_inode gets an empty
inode and needs to fill it in.  To do this, it calls ext2_get_inode with
the inode number that was put in the inode.  The code is pretty
complicated, and is dependent on the file system's layout.

Avishay Traeger
http://www.fsl.cs.sunysb.edu/~avishay/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux