aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-10-02 04:31:42 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2018-01-24 05:26:06 -0500
commit8383f1748829e1a6a07988863ed13a47fb653387 (patch)
tree49854741ffc84693ed7878fa2c506609e5e4c22c
parent061701540349c30d72e48a201449a840c77ad509 (diff)
ovl: wire up NFS export operations
Now that NFS export operations are implemented, enable overlayfs NFS export support if the "nfs_export" feature is enabled. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/overlayfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index fccdcfae68e9..9ee37c76091d 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1331,6 +1331,9 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
1331 } 1331 }
1332 } 1332 }
1333 1333
1334 if (ofs->config.nfs_export)
1335 sb->s_export_op = &ovl_export_operations;
1336
1334 /* Never override disk quota limits or use reserved space */ 1337 /* Never override disk quota limits or use reserved space */
1335 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE); 1338 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE);
1336 1339