Re: Union-like fs

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

 



> Is there any way to get it solve or it is unsolvable? I've heard someone
> doing the same thing before and use the FAT implementation on generating
> inode numbers... how is this done? Thanks.

There are more cases where you have to invent inode numbers. You can use
the iuique function. However doing iget(iunique()) looks racy, so it should
be done under some lock. Also it might be slow. You can also use the inode
structure pointer (but beware on 64-bit platforms).

Note, that it's only guaranteed, that one file has exactly one inode nuber
in every moment. But it can have different one a moment later and the former
one can be then assigned to different file. You can't safely get persistent
inode numbers even if the underlying filesystems provide them.

--------------------------------------------------------------------------------
                  				- Jan Hudec `Bulb' <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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