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)
Dec 25 2025, 1:34 PM
Unknown Object (File)
Dec 1 2025, 10:03 PM
Unknown Object (File)
Nov 29 2025, 10:42 PM
Unknown Object (File)
Nov 21 2025, 2:16 AM
Unknown Object (File)
Nov 21 2025, 2:15 AM
Unknown Object (File)
Nov 21 2025, 2:15 AM
Unknown Object (File)
Nov 21 2025, 2:12 AM
Unknown Object (File)
Nov 16 2025, 6:52 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