svn commit: r252523 - head/sbin/mdconfig
Xin LI
delphij at FreeBSD.org
Tue Jul 2 19:42:48 UTC 2013
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
More information about the svn-src-head
mailing list