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)
Jan 21 2024, 5:00 PM
Unknown Object (File)
Dec 24 2023, 9:48 PM
Unknown Object (File)
Dec 12 2023, 8:47 AM
Unknown Object (File)
Dec 1 2023, 4:47 AM
Unknown Object (File)
Oct 24 2023, 2:36 AM
Unknown Object (File)
Oct 12 2023, 12:42 AM
Unknown Object (File)
Aug 17 2023, 1:10 AM
Unknown Object (File)
Jul 13 2023, 5:15 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