]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r318546:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 May 2017 23:04:48 +0000 (23:04 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 May 2017 23:04:48 +0000 (23:04 +0000)
commit6ff60f2584dc6bb7154f2c66c8647949447bbec7
tree03cd6f3f8a2d09a088d5c6fa250abedae2de63c2
parent7abb9a98e9959b36915ca02e390f6bcf5176a66f
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/fs/tmpfs/t_vnd.sh
tests/sys/fs/tmpfs/Makefile