diff options
author | ngie <ngie@FreeBSD.org> | 2017-05-27 23:04:48 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-05-27 23:04:48 +0000 |
commit | 75e7ac62b1cfd9030af1e58bf8ac1fa63c888c28 (patch) | |
tree | 03cd6f3f8a2d09a088d5c6fa250abedae2de63c2 /lib/libkvm/tests/kvm_test_common.c | |
parent | 17c4108b2eca043c887538a3d056aba606d10394 (diff) | |
download | FreeBSD-src-75e7ac62b1cfd9030af1e58bf8ac1fa63c888c28.zip FreeBSD-src-75e7ac62b1cfd9030af1e58bf8ac1fa63c888c28.tar.gz |
MFC r318546:
sys/fs/tmpfs/vnd_test: make md(4) allocation dynamic
The previous logic was flawed in the sense that it assumed that /dev/md3
was always available. This was a caveat I noted in r306038, that I hadn't
gotten around to solving before now.
Cache the device for the mountpoint after executing mdmfs, then use the
cached value in basic_cleanup(..) when unmounting/disconnecting the md(4)
device.
Apply sed expressions to use reuse logic in the NetBSD code that could
also be applied to FreeBSD, just with different tools.
Diffstat (limited to 'lib/libkvm/tests/kvm_test_common.c')
0 files changed, 0 insertions, 0 deletions