-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umount(8): Add -d option to detach vn(4) devices
The '-d' option tells umount(8) to detach the underlying vn(4) device if the filesystem was mounted from it. Note that vn(4) is a virtual disk and can provides multiple filesystems, so the vn(4) detaching can only succeed when all the filesystems are umounted. For example: $ vnconfig -c vn dfly.img vn4 $ mount_msdos /dev/vn4s1 /mnt/dfly/boot $ mount_ufs /dev/vn4s2a /mnt/dfly/root $ umount -d /mnt/dfly/boot umount: VNIOCDETACH: /dev/vn4: Device busy umount: detach of /dev/vn4s1 failed $ umount -d /mnt/dfly/root (now vn4 is detached) A similar option exists in Linux's and FreeBSD's umount(8). GitHub PR: #24 See Also: freebsd/freebsd-src#972
- Loading branch information
1 parent
c008937
commit ce0bf05
Showing
2 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters