Page MenuHomeFreeBSD

sys/fs/tmpfs/vnd_test: make md(4) allocation dynamic
ClosedPublic

Authored by ngie on May 17 2017, 4:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 26 2026, 11:07 AM
Unknown Object (File)
May 26 2026, 9:03 AM
Unknown Object (File)
May 25 2026, 1:34 PM
Unknown Object (File)
May 21 2026, 1:24 AM
Unknown Object (File)
Apr 30 2026, 6:31 PM
Unknown Object (File)
Apr 25 2026, 8:53 PM
Unknown Object (File)
Apr 25 2026, 5:59 AM
Unknown Object (File)
Apr 19 2026, 2:13 PM
Subscribers

Details

Summary

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.

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.

MFC after: 1 month
Sponsored by: Dell EMC Isilon

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable