NFS and UFS Mounting on a non-empty directory

Jeff Beadles jeff at quark.WV.TEK.COM
Mon Jul 24 07:00:02 AEST 1989


>In article <12921 at bloom-beacon.MIT.EDU> jik at athena.mit.edu (Jonathan I. Kamens) writes:
>>Yes, the concept of mounting over a non-empty directory is
>>well-defined
>>>     Its
>>>     old contents are inaccessible while the file system is
>>>     mounted.


In article <1989Jul23.194057.4247 at ctr.columbia.edu> seth at ctr.columbia.edu (Seth Robertson) writes:
>The concept may be well defined, but the implementation bytes the big one.
>In SunOS 4.0.3

>seth elara> cd /mnt
>seth elara> ls
>testfile
>seth elara> cat testfile
>This is a test.
>seth elara> mount leda:/image /mnt

[ Stuff deleted ]


I think that your Sun has a fairly serious problem if it allowed you to do
this.  If the above is what you did, you SHOULD get a 'mount point busy' as you
are in /mnt when you mount on top if it.
(The same would apply for unmount/umount)


This is what happens under Utek (4.2 based BSD, with NFS)

Script started on Sun Jul 23 13:54:16 1989
rq:jeff> cd /tmp
rq:tmp> mkdir foo
rq:tmp> cd foo
rq:foo> /etc/mount tango:/ /tmp/foo
mount: tango:/ on /tmp/foo: Device busy
mount: giving up on:
   /tmp/foo
rq:foo> /etc/mount | egrep tango
rq:foo> cd /
rq:tmp> rmdir /tmp/foo
rq:tmp> ^D
script done on Sun Jul 23 13:55:13 1989


	-Jeff

-- 
Jeff Beadles		Utek Sustaining Engineering, Tektronix Inc.
jeff at quark.WV.TEK.COM



More information about the Comp.unix.wizards mailing list