svn commit: r293759 - stable/10/sys/kern

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jan 12 14:18:56 UTC 2016


Author: trasz
Date: Tue Jan 12 14:18:54 2016
New Revision: 293759
URL: https://svnweb.freebsd.org/changeset/base/293759

Log:
  Hide the "unmount of /dev failed (BUSY)" warning at shutdown or reboot,
  introduced with r293742, just like it was hidden before that commit.
  
  This is a direct commit to 10-STABLE; this special case is not needed
  in 11-CURRENT, because devfs supports forced unmounts there.  The forced
  unmount could be MFC-ed, but there are some LORs at shutdown, and I have
  a weird feelings about it.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/kern/vfs_subr.c

Modified: stable/10/sys/kern/vfs_subr.c
==============================================================================
--- stable/10/sys/kern/vfs_subr.c	Tue Jan 12 13:42:27 2016	(r293758)
+++ stable/10/sys/kern/vfs_subr.c	Tue Jan 12 14:18:54 2016	(r293759)
@@ -3734,7 +3734,7 @@ unmount_or_warn(struct mount *mp)
 	int error;
 
 	error = dounmount(mp, MNT_FORCE, curthread);
-	if (error != 0) {
+	if (error != 0 && strcmp(mp->mnt_vfc->vfc_name, "devfs") != 0) {
 		printf("unmount of %s failed (", mp->mnt_stat.f_mntonname);
 		if (error == EBUSY)
 			printf("BUSY)\n");


More information about the svn-src-all mailing list