For MD_PRELOAD type md(4) devices, if there is a file name in the preloaded
authorstevek <stevek@FreeBSD.org>
Mon, 13 Feb 2017 17:44:07 +0000 (17:44 +0000)
committerstevek <stevek@FreeBSD.org>
Mon, 13 Feb 2017 17:44:07 +0000 (17:44 +0000)
commit20012536fde5fd3b5a8c5affc1f51958c1b3f650
treec6f6b2530741ad86c216d74527c21f2cd70a7df9
parent5a443cfa6c94b132c1d7f182acb26bd278d7f6ee
For MD_PRELOAD type md(4) devices, if there is a file name in the preloaded
meta-data, copy it into the softc structure.

When returning md(4) device details to the caller, include the file name in
any MD_PRELOAD type devices if it is set (first character is not NUL.)

In mdconfig, for "preload" type md(4) devices, if there is file config
available, print it in the file column of the output.

Reviewed by: brooks
Approved by: sjg (mentor)
MFC after: 1 month
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D9529
sbin/mdconfig/mdconfig.c
sys/dev/md/md.c