Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 1999 09:26:59 -0700 (PDT)
From:      Brian Feldman <green@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/umount umount.8 umount.c
Message-ID:  <199910171626.JAA24777@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
green       1999/10/17 09:26:59 PDT

  Modified files:
    sbin/umount          umount.8 umount.c 
  Log:
  quoting << Martin_Blapp
  
  -	Completly changed the internals of umount(8). We do three
  	checks now to see if 'argv' is in the mounttable. It they
  	all fail, we return to main and print a warning.
  
  -	fixed the umount mount-order. The checks are rather complex
  	to do this. Cause umount(8) should also be able to unmount
  	several devices at once ('umount -a', 'umount -A',
  	'umount /mnt /mnt2'), the mount-order get's important.
  	I added checks to mark and unmark already unmounted devices.
  
  - 	Various fixes with nfs-unmounts (no rpc-calls were done,
  	or they were done although there was an existing mount).
  	Since we allow overlay-mounts, we should also handle them
  	properly.
  
  -	Translate the deprecated nfs-syntax with '@' to ':' like
  	mount_nfs does. The ':' syntax has now precedence, but '@'
  	still works.
  
  -	'umount -v' is now fixed for all cases and doesn't print
  	garbage like two times the mountpoint etc.
  
  -	removed non documented and useless umount '-F'.
  
  -	hanged nfsmounts can now unmounted 'without' any problems.
  	I've removed stat() and realpath() checks on the mountpoint.
  	Instead we just do a realpath() on the basedir of the
  	mountpath and add the dirname again.
  	Implemented this as an idea from phk. But there are still
  	vfs-restrictions if the nfs_mount is busy. If there are
  	unwritten metadata on a hanged nfs-mount, and we modify
  	nfs_vfsops.c to not return EBUSY, we get a deadlock :(
  	The problem has now moved from userland to kernel.
  
  -	removed the BUGS part from the umount(8) manpage.
  
  -	Converted it to ANSI C (more than 60% of the code have
  	changed).
  
  Martin_Blapp
  
  Fixed PR's
  ----------
  
  o [1999/02/03] bin/9893                 NFS umount of regular file impossible
  
  s [1995/11/27] bin/841			stale nfs mounts cannot be umounted
  
  o [1999/08/01] bin/12911	alfred  NFS umounts are not properly done
  					if just the mountpoint gets umounted
  
  Only partially solved:
  ----------------------
  
  The problem is now in kernel:
  
  o [1999/04/07] bin/11005		`umount -f' does not work if the
  					NFS-server is down.
  
  PR:		bin/9893 bin/841 bin/12911 bin/11005
  Submitted by:	Martin Blapp <mb@imp.ch>
  
  Revision  Changes    Path
  1.7       +1 -23     src/sbin/umount/umount.8
  1.18      +420 -127  src/sbin/umount/umount.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910171626.JAA24777>