Skip to content

Commit

Permalink
ovl: wire up NFS export operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amir Goldstein authored and Miklos Szeredi committed Jan 24, 2018
1 parent 0617015 commit 8383f17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/overlayfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8383f17

Please sign in to comment.