Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2013 19:42:48 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252523 - head/sbin/mdconfig
Message-ID:  <201307021942.r62Jgmqj062796@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Jul  2 19:42:47 2013
New Revision: 252523
URL: http://svnweb.freebsd.org/changeset/base/252523

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

Modified:
  head/sbin/mdconfig/mdconfig.c

Modified: head/sbin/mdconfig/mdconfig.c
==============================================================================
--- head/sbin/mdconfig/mdconfig.c	Tue Jul  2 19:35:04 2013	(r252522)
+++ head/sbin/mdconfig/mdconfig.c	Tue Jul  2 19:42:47 2013	(r252523)
@@ -450,7 +450,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



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