* Help with Non-Unique Inodes
@ 2004-05-28 14:34 Paul Serice
2004-05-28 21:07 ` Denis Vlasenko
0 siblings, 1 reply; 2+ messages in thread
From: Paul Serice @ 2004-05-28 14:34 UTC (permalink / raw)
To: Linux Kernel Mailing List
I think I've finished changing the inode scheme in the isofs code to
better support DVDs. Pursuant to a comment in fs/inode.c, I switched
from iget() to iget5_locked() because a 32-bit inode number was unable
to uniquely identify all the possible inodes.
I want to make sure I understand what is expected of the ino_t value
returned to the user before I post the patch:
1) Does the ino_t returned to the user have to be unique? I ask
because the inodes on the isofs are sparse, and a unique number
could probably be generated for the benefit of the user. I'm
currently returning the same hash value I pass to iget5_locked().
2) In order to avoid recursion loops, I believe the "ls" and "find"
commands assume inodes are unique for a particular device, and they
refuse to recurse down different directories on the same device
with the same inode number. If the ino_t returned to the user does
not have to be unique, how do I guarantee that these basic
utilities are capable of fully recursing the file system?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help with Non-Unique Inodes
2004-05-28 14:34 Help with Non-Unique Inodes Paul Serice
@ 2004-05-28 21:07 ` Denis Vlasenko
0 siblings, 0 replies; 2+ messages in thread
From: Denis Vlasenko @ 2004-05-28 21:07 UTC (permalink / raw)
To: Paul Serice, Linux Kernel Mailing List
On Friday 28 May 2004 17:34, Paul Serice wrote:
> I think I've finished changing the inode scheme in the isofs code to
> better support DVDs. Pursuant to a comment in fs/inode.c, I switched
> from iget() to iget5_locked() because a 32-bit inode number was unable
> to uniquely identify all the possible inodes.
>
> I want to make sure I understand what is expected of the ino_t value
> returned to the user before I post the patch:
>
> 1) Does the ino_t returned to the user have to be unique? I ask
> because the inodes on the isofs are sparse, and a unique number
> could probably be generated for the benefit of the user. I'm
> currently returning the same hash value I pass to iget5_locked().
>
> 2) In order to avoid recursion loops, I believe the "ls" and "find"
> commands assume inodes are unique for a particular device, and they
> refuse to recurse down different directories on the same device
> with the same inode number. If the ino_t returned to the user does
> not have to be unique, how do I guarantee that these basic
> utilities are capable of fully recursing the file system?
inaodes are 32bit and shall be unique.
I wonder, thugh, how Linux will manage to achieve that on
exabyte-sized drives and filesystems five years from now...
--
vda
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-28 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-28 14:34 Help with Non-Unique Inodes Paul Serice
2004-05-28 21:07 ` Denis Vlasenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox