public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* duplicated inode numbers for different files?
@ 2004-02-02  9:41 "Andrey Borzenkov" 
  2004-02-02 13:04 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: "Andrey Borzenkov"  @ 2004-02-02  9:41 UTC (permalink / raw)
  To: linux-kernel


Are inode numbers supposed to be unique inside a filesystem? There
is some code in nfsd (at least in 2.4) that suggests that it is not
always the case.

Background:

Supermount is currently using 1-to-1 correspondence
between super- and subfs inodes. This is OK for all except root
inode - it still has to have some inode number for root all the time.
So it assigns arbitrary number and changes it after subfs has been
mounted to reflect subfs root.

This breaks for NFS (at least for Linux client, cannot test any other)
because NFS thinks root inode changed after having been mounted
and gives up.

idea is to use fixed root number; it can be done but may result
in duplicated number. Using ino == 0 may lessen chances (is it valid
BTW?)

Hmm ... actually if subfs is allowed to have duplicated inode numbers
then supermount needs different get inode implementation anyway.

TIA

-andrey

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-02 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02  9:41 duplicated inode numbers for different files? "Andrey Borzenkov" 
2004-02-02 13:04 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox