Why Partition a Hard Disk

Guy Harris guy at gorodish.Sun.COM
Sat Sep 3 05:52:54 AEST 1988


> The one significant resource limitation that remains in some systems is
> 16-bit inode numbers, limiting the number of files that can exist in a
> single filesystem.  4BSD has fixed this, but at least the early System V
> releases didn't (I'm not sure about the current ones).

Only the ones that have 1) picked up the 4.2BSD file system and 2) have changed
inumbers throughout the system to be 32 bits :-).

S5 still uses the V7 file system, which still has 16 bit inumbers in directory
entries.  Even if some vendor adds the 4.2BSD file system to their System V
kernel, there's still a potential problem if they don't, for example, change
the "st_ino" field in the "stat" structure from an "unsigned short" to an
"unsigned long"; if you have inumbers > 65535 on that file system, "st_ino" is
no longer unique on that file system - this probably won't break *most*
programs, but I have no idea which ones it *will* break, or how badly they'll
break.

Furthermore, note that adding NFS to S5 - even if you *haven't* added the
4.2BSD file system - causes the exact same problem, if for example you mount a
4.2BSD file system with inumbers > 65535 from some *other* machine.

Yes, changing the "stat" structure may be painful.  Not changing it may be
painful as well....



More information about the Comp.unix.wizards mailing list