summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-09-27 15:07:41 +0000
committerasomers <asomers@FreeBSD.org>2017-09-27 15:07:41 +0000
commit45e17f6abd3d6f4542db4c14559a33b6bd2880dd (patch)
treeb5952f538a416f9e24de479ccb607bec6d4b2e8c
parentadbcaf69fa842a1ec8102b12d92b1aaece8f2cab (diff)
downloadFreeBSD-src-45e17f6abd3d6f4542db4c14559a33b6bd2880dd.zip
FreeBSD-src-45e17f6abd3d6f4542db4c14559a33b6bd2880dd.tar.gz
MFC r323194:
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 Reviewed by: avg Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12233
-rw-r--r--sys/cddl/compat/opensolaris/sys/mntent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/mntent.h b/sys/cddl/compat/opensolaris/sys/mntent.h
index 3faea6b..a6afbb3 100644
--- a/sys/cddl/compat/opensolaris/sys/mntent.h
+++ b/sys/cddl/compat/opensolaris/sys/mntent.h
@@ -46,7 +46,7 @@
#define MNTOPT_NODEVICES "nodevices" /* Device-special disallowed */
#define MNTOPT_SETUID "setuid" /* Set uid allowed */
#define MNTOPT_NOSETUID "nosetuid" /* Set uid not allowed */
-#define MNTOPT_REMOUNT "remount" /* Change mount options */
+#define MNTOPT_REMOUNT "update" /* Change mount options */
#define MNTOPT_ATIME "atime" /* update atime for files */
#define MNTOPT_NOATIME "noatime" /* do not update atime for files */
#define MNTOPT_XATTR "xattr" /* enable extended attributes */
OpenPOWER on IntegriCloud