Strange TFS Behaviour

mario at computer-science.manchester.ac.uk mario at computer-science.manchester.ac.uk
Thu Jan 31 02:36:38 AEST 1991


I've been trying to use TFS (under 4.1.1), and it seems to behave very
strangely under some circumstances.  The main problem is that the apparent
state of a filesystem can change by unmounting and then remounting it!

Here's an eg, in which I remove a directory (and hence all its contents),
which then magically reappear again!

# mkdir /bottom /bottom/foo /top
# touch /bottom/foo/file
# mount_tfs /top /bottom  # now bottom has a layer above it..
# cd /bottom/foo
# ls
file
# rm file	# delete ("whiteout") the file
# ls		# ..apparently gone..
# lsw		# ..but still in the lower layer
file
# cd ..
# rmdir foo	# now do the same for the directory...
# mkdir foo	# ...and immediately remake it
# cd foo
# ls		# the new directory is opaque.
# cd /		# now unmount and remount the files (eg at a reboot)
# umount_tfs /bottom
# mount_tfs /top /bottom
# cd /bottom/foo 
# ls	# and the directory is now translucent, and the file has reappeared!
file

This seems just plain wrong to me.  I like the original behaviour: using
that I can have a directory which is opaque (which can be useful).  But if
opaque directories become translucent again, then I'm just going to get
confused!!



More information about the Comp.sys.sun mailing list