aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/include/sys/mount.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/include/sys/mount.h')
-rw-r--r--lib/libspl/include/sys/mount.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libspl/include/sys/mount.h b/lib/libspl/include/sys/mount.h
index d4ac6a958..145e785e3 100644
--- a/lib/libspl/include/sys/mount.h
+++ b/lib/libspl/include/sys/mount.h
@@ -73,4 +73,11 @@
# define MS_DETACH 0x00000002
#endif /* MNT_DETACH */
+/*
+ * Overlay mount is default in Linux, but for solaris/zfs
+ * compatibility, MS_OVERLAY is defined to explicitly have the user
+ * provide a flag (-O) to mount over a non empty directory.
+ */
+#define MS_OVERLAY 0x00000004
+
#endif /* _LIBSPL_SYS_MOUNT_H */