Page MenuHomeFreeBSD

Fix remounting ZFS filesystem with "zfs mount"
ClosedPublic

Authored by asomers on Sep 5 2017, 6:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 20, 12:30 AM
Unknown Object (File)
Tue, Mar 17, 7:27 AM
Unknown Object (File)
Mon, Mar 16, 1:05 AM
Unknown Object (File)
Tue, Mar 10, 7:22 PM
Unknown Object (File)
Sun, Mar 1, 11:04 PM
Unknown Object (File)
Sun, Mar 1, 5:42 AM
Unknown Object (File)
Dec 6 2025, 7:46 AM
Unknown Object (File)
Nov 28 2025, 11:59 PM
Subscribers

Details

Summary

Fix remounting ZFS filesystem with "zfs mount"

"zfs mount -o" passes a list of mount options directly to nmount(2) after
sanity checking them. In particular, zfs(8) will refuse to mount an already
existing file system unless "remount" is specified in the option list.
However, the "remount" option only exists in Illumos. FreeBSD's equivalent is
"update".

PR: 221985

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

LGTM. I assume that the change has been tested.

This revision is now accepted and ready to land.Sep 5 2017, 7:21 PM
This revision was automatically updated to reflect the committed changes.