diff options
author | delphij <delphij@FreeBSD.org> | 2013-07-02 19:42:47 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-07-02 19:42:47 +0000 |
commit | 1559c2306ba6423667366b9d4ac8cb3a89498f07 (patch) | |
tree | a28594720c23b719297f934bdee2674d7b7b6345 /sbin/mdconfig | |
parent | 935ea81356eb716ce1d3ea80939d214ff8d7c4b4 (diff) | |
download | FreeBSD-src-1559c2306ba6423667366b9d4ac8cb3a89498f07.zip FreeBSD-src-1559c2306ba6423667366b9d4ac8cb3a89498f07.tar.gz |
When listing with -f, skip all memory disks that are not vnode-backed.
Noticed by: kevlo
MFC after: 3 days
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 1a33905..6ba4cd6 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 |