projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0617015
)
ovl: wire up NFS export operations
author
Amir Goldstein
<amir73il@gmail.com>
Mon, 2 Oct 2017 08:31:42 +0000
(11:31 +0300)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:06 +0000
(11:26 +0100)
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>
fs/overlayfs/super.c
patch
|
blob
|
history
diff --git
a/fs/overlayfs/super.c
b/fs/overlayfs/super.c
index fccdcfae68e939b4f259760be7148b85a2d4f472..9ee37c76091d685275dcc39945b29186900c2669 100644
(file)
--- 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)
}
}
+ if (ofs->config.nfs_export)
+ sb->s_export_op = &ovl_export_operations;
+
/* Never override disk quota limits or use reserved space */
cap_lower(cred->cap_effective, CAP_SYS_RESOURCE);