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)
Tue, Sep 8, 10:41 PM
Unknown Object (File)
Sun, Aug 30, 4:25 AM
Unknown Object (File)
Aug 15 2026, 10:21 PM
Unknown Object (File)
Jul 16 2026, 10:08 PM
Unknown Object (File)
Jul 16 2026, 5:37 PM
Unknown Object (File)
Jul 16 2026, 2:33 AM
Unknown Object (File)
Jul 15 2026, 9:28 AM
Unknown Object (File)
Jul 10 2026, 10:46 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