Page MenuHomeFreeBSD

libbe: attempt to remove autocreated mountpoints at unmount time
ClosedPublic

Authored by kevans on Oct 17 2023, 12:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 3, 2:03 AM
Unknown Object (File)
Sat, Mar 21, 3:37 AM
Unknown Object (File)
Fri, Mar 20, 4:10 AM
Unknown Object (File)
Fri, Mar 20, 4:10 AM
Unknown Object (File)
Tue, Mar 17, 4:40 AM
Unknown Object (File)
Mon, Mar 16, 12:15 AM
Unknown Object (File)
Mar 8 2026, 3:51 AM
Unknown Object (File)
Mar 7 2026, 9:54 PM
Subscribers

Details

Summary

We use a be_mount.XXXX pattern to mkdtemp(3) when creating these, which
seems reasonably unique enough to just continue using that. Record the
mountpoint of the root dataset and check the dirname of that for the
auto-creation trait. There's no sense in this bubbling up an error to
callers, so we'll just ignore an error for now.

Requested by: manu

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable