Author: asomers
Date: Tue Sep  5 19:40:04 2017
New Revision: 323194
URL: https://svnweb.freebsd.org/changeset/base/323194

Log:
  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
  MFC after:    3 weeks
  Sponsored by: Spectra Logic Corp
  Differential Revision:        https://reviews.freebsd.org/D12233

Modified:
  head/sys/cddl/compat/opensolaris/sys/mntent.h

Modified: head/sys/cddl/compat/opensolaris/sys/mntent.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/mntent.h       Tue Sep  5 19:28:35 
2017        (r323193)
+++ head/sys/cddl/compat/opensolaris/sys/mntent.h       Tue Sep  5 19:40:04 
2017        (r323194)
@@ -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 */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to