Subject: Re: large inode numbers
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 12/16/2003 19:32:45
>> OTOH do we guarantee unique inode numbers for all filesystems?
>> IIRC union mounts done generate unique numbers - and mkisofs can get
> Oh dear. If true, mkisofs won't be the only thing to be confused.
> rsync and tar spring immediately to mind.
getcwd() as implemented by walking up .. chains is another. (And
that's probably done by a lot of existing statically-linked programs.)
Anything that causes distinct simultaneously-existing objects to have
identical <st_dev,st_ino> pairs breaks one of the longest-standing
undocumented Unix invariants I know of. Lots of code will break.
What's worse, it will probably break (a) silently and (b) subtly.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B