svn commit: r252769 - stable/9/sbin/mdconfig

Xin LI delphij at FreeBSD.org
Fri Jul 5 04:24:22 UTC 2013


Author: delphij
Date: Fri Jul  5 04:24:21 2013
New Revision: 252769
URL: http://svnweb.freebsd.org/changeset/base/252769

Log:
  MFC r252523:
  
  When listing with -f, skip all memory disks that are not vnode-backed.
  
  Noticed by:	kevlo

Modified:
  stable/9/sbin/mdconfig/mdconfig.c
Directory Properties:
  stable/9/sbin/mdconfig/   (props changed)

Modified: stable/9/sbin/mdconfig/mdconfig.c
==============================================================================
--- stable/9/sbin/mdconfig/mdconfig.c	Fri Jul  5 04:22:40 2013	(r252768)
+++ stable/9/sbin/mdconfig/mdconfig.c	Fri Jul  5 04:24:21 2013	(r252769)
@@ -429,7 +429,8 @@ md_list(const char *units, int opt, cons
 					continue;
 				else
 					ffound = 1;
-			}
+			} else if (fflag != NULL)
+					continue;
 			if (nflag && strncmp(pp->lg_name, MD_NAME, 2) == 0)
 				printf("%s", pp->lg_name + 2);
 			else


More information about the svn-src-stable-9 mailing list