When listing with -f, skip all memory disks that are not vnode-backed.

Noticed by:	kevlo
MFC after:	3 days
This commit is contained in:
Xin LI 2013-07-02 19:42:47 +00:00
parent 4579f5e5c1
commit fa3483e67c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252523

View File

@ -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