aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-07-02 19:42:47 +0000
committerXin LI <delphij@FreeBSD.org>2013-07-02 19:42:47 +0000
commitfa3483e67c07402b9bccbf2e06c0845b18f57b01 (patch)
treea28594720c23b719297f934bdee2674d7b7b6345 /sbin/mdconfig
parent4579f5e5c11a7cd6ddeeb91ae81da582bb3517d2 (diff)
downloadsrc-fa3483e67c07402b9bccbf2e06c0845b18f57b01.tar.gz
src-fa3483e67c07402b9bccbf2e06c0845b18f57b01.zip
When listing with -f, skip all memory disks that are not vnode-backed.
Noticed by: kevlo MFC after: 3 days
Notes
Notes: svn path=/head/; revision=252523
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 1a33905c1111..6ba4cd6e603d 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -450,7 +450,8 @@ md_list(const char *units, int opt, const char *fflag)
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