diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-03-22 08:42:21 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-05-05 11:38:57 +0200 |
commit | 7bcd74b98d7bac3e5149894caaf72de6989af7f0 (patch) | |
tree | 0b7b0bb5dd7848ad6572b50d64ad81059e2b5fae /fs/overlayfs/overlayfs.h | |
parent | 4a99f3c83dc493c8ea84693d78cd792839c8aa64 (diff) |
ovl: check if all layers are on the same fs
Some features can only work when all layers are on the same fs. Test this
condition during mount time, so features can check them later.
Add helper ovl_same_sb() to return the common super block in case all
layers are on the same fs.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r-- | fs/overlayfs/overlayfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 741dc0b6931f..c851158324e2 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h @@ -151,6 +151,7 @@ int ovl_want_write(struct dentry *dentry); void ovl_drop_write(struct dentry *dentry); struct dentry *ovl_workdir(struct dentry *dentry); const struct cred *ovl_override_creds(struct super_block *sb); +struct super_block *ovl_same_sb(struct super_block *sb); struct ovl_entry *ovl_alloc_entry(unsigned int numlower); bool ovl_dentry_remote(struct dentry *dentry); bool ovl_dentry_weird(struct dentry *dentry); |