[4910] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 6.4A: afs "inode" & "device" numbers

daemon@ATHENA.MIT.EDU (John T Kohl)
Thu May 10 14:46:27 1990

Date: Thu, 10 May 90 14:46:10 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System name:		quicksilver
Type and version:	KN01 6.4A
Display type:		PM-MONO

What were you trying to do?
	demonstrate a bug in AFS.

What's wrong:
	stat() can report that two different files in AFS have the same
dev,ino pair, which causes problems for certain programs which know in
their hearts that all distinct files have a unique dev,ino pair:

[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
% fs lsm foo
'foo' is a mount point for volume '#sipb.mit.edu:project.dvi2ps'
[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
% ls -lai .calendar.~1~ foo/MAKEFILE
7208962 -rw-r--r--  1 jtkohl        876 Apr 24 16:21 .calendar.~1~
7208962 -rw-r--r--  1 jtkohl       5244 Aug  9  1987 foo/MAKEFILE
[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
% fs lv .
Volume status for vid = 536871022 named user.jtkohl
Current minimum quota is 0, maximum quota is 15000
Current blocks used are 12560
The partition has 66267 blocks available out of 503443

[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
% fs lv foo
Volume status for vid = 536871022 named project.dvi2ps
Current minimum quota is 0, maximum quota is 5000
Current blocks used are 4063
The partition has 5290 blocks available out of 254662

[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
% cp .calendar.~1~ foo/MAKEFILE
cp: Cannot copy file to itself.
Exit 1               cp .calendar.~1~ foo/MAKEFILE
[{1}quicksilver:/afs/athena.mit.edu/user/j/jtkohl]
%

What should have happened:
	AFS should generate unique dev,ino pairs for all its files.

Please describe any relevant documentation references:
	???


home help back first fref pref prev next nref lref last post