summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2015-07-31 20:52:31 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2015-07-31 20:52:31 +0000
commitafaff3ad2e43966f17aaa81ff16945cd59170032 (patch)
tree8e6ef2f7757f57adc51b407788cf39b628ff196b
parent2a4baf9fe8cd0e7d7ba626c12c42f3afedc59e1b (diff)
downloadillumos-joyent-afaff3ad2e43966f17aaa81ff16945cd59170032.tar.gz
OS-4536 lx zone failing to mount /run due to EBUSY
-rw-r--r--usr/src/lib/brand/lx/lx_brand/common/mount.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/src/lib/brand/lx/lx_brand/common/mount.c b/usr/src/lib/brand/lx/lx_brand/common/mount.c
index 406c960dc1..efa6ad22c6 100644
--- a/usr/src/lib/brand/lx/lx_brand/common/mount.c
+++ b/usr/src/lib/brand/lx/lx_brand/common/mount.c
@@ -722,6 +722,10 @@ lx_mount(uintptr_t p1, uintptr_t p2, uintptr_t p3, uintptr_t p4,
options);
return (-errno);
}
+
+ /* Linux seems to always allow overlay mounts */
+ sflags |= MS_OVERLAY;
+
} else if (strcmp(fstype, "proc") == 0) {
struct stat64 sb;
@@ -808,6 +812,10 @@ lx_mount(uintptr_t p1, uintptr_t p2, uintptr_t p3, uintptr_t p4,
options);
return (-errno);
}
+
+ /* Linux seems to always allow overlay mounts */
+ sflags |= MS_OVERLAY;
+
} else if (strcmp(fstype, "nfs") == 0) {
/*
@@ -880,6 +888,10 @@ lx_mount(uintptr_t p1, uintptr_t p2, uintptr_t p3, uintptr_t p4,
sflags |= MS_DATA;
sdataptr = (char *)&nfs_args;
sdatalen = sizeof (nfs_args);
+
+ /* Linux seems to always allow overlay mounts */
+ sflags |= MS_OVERLAY;
+
} else {
lx_unsupported("unsupported mount filesystem type: %s", fstype);
return (-ENODEV);