Re: How about we just let all inode numbers on FAT be zero?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 17 Jan 1999 03:46:56 +0000 (GMT)


> I'd prefer for inode numbers to be completely made up, possibly by just
> doing
>
> static u32 msdos_ino = 0;
> #define get_vfat_ino() (++msdos_ino)
>
> The inode number doesn't have to be unique, but the above makes at least a
> small attempt to make sure that under normal circumstances you can never
> see any inode numbers that are the same.

Avoid inodes 0,1,2 - if you shift stuff to and from AT&T derived unix you
get problems with those numbers because they are deeply magical. They've
not actually been magical since the mid 1980's but the tools have ideas 8(

ie

msdos_ino = 3
#define ..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/