svn commit: r224040 - head/sbin/umount

Kirk McKusick mckusick at FreeBSD.org
Thu Jul 14 20:17:06 UTC 2011


Author: mckusick
Date: Thu Jul 14 20:17:05 2011
New Revision: 224040
URL: http://svn.freebsd.org/changeset/base/224040

Log:
  When using -A option (unmount all mounted filesystems), do not attempt
  to unmount /dev as it will always fail.

Modified:
  head/sbin/umount/umount.c

Modified: head/sbin/umount/umount.c
==============================================================================
--- head/sbin/umount/umount.c	Thu Jul 14 20:11:27 2011	(r224039)
+++ head/sbin/umount/umount.c	Thu Jul 14 20:17:05 2011	(r224040)
@@ -154,6 +154,8 @@ main(int argc, char *argv[])
 			sfs = &mntbuf[mntsize];
 			if (checkvfsname(sfs->f_fstypename, typelist))
 				continue;
+			if (strcmp(sfs->f_mntonname, "/dev") == 0)
+				continue;
 			if (umountfs(sfs) != 0)
 				errs = 1;
 		}


More information about the svn-src-head mailing list