From: Amir Goldstein Date: Mon, 2 Oct 2017 08:31:42 +0000 (+0300) Subject: ovl: wire up NFS export operations X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8383f1748829e1a6a07988863ed13a47fb653387;p=linux.git 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 Signed-off-by: Miklos Szeredi --- diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index fccdcfae68e93..9ee37c76091d6 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) } } + 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);