diff options
author | ngie <ngie@FreeBSD.org> | 2017-05-27 22:59:23 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-05-27 22:59:23 +0000 |
commit | 79b0a71fc509ae56eb96b54abc55457d8b0f918e (patch) | |
tree | 7b4b2af3b5c5b4475f98de056be0a05faf2ebcd9 /lib/libkvm/tests/kvm_test_common.c | |
parent | f2e5e1c47a03c612eddc000ba25a7f840f9ffda1 (diff) | |
download | FreeBSD-src-79b0a71fc509ae56eb96b54abc55457d8b0f918e.zip FreeBSD-src-79b0a71fc509ae56eb96b54abc55457d8b0f918e.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