Add a label to md devices created by this test. The next time this
test leaks md devices, finding the culprit will be much easier.
Thanks to: sobomax, for adding labels in r322969
MFC after: 1 week
Sponsored by: Dell EMC Isilon
(cherry picked from commit
9666cda9764a1d19cbf967940508dc6d2020cbfb)
mdio.md_options = MD_AUTOUNIT | MD_COMPRESS;
mdio.md_mediasize = GLOBAL_MAX;
mdio.md_sectorsize = 512;
+ strlcpy(buf, __func__, sizeof(buf));
+ mdio.md_label = buf;
if (ioctl(mdctl_fd, MDIOCATTACH, &mdio) < 0) {
error = errno;