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>
This commit is contained in:

committed by
Miklos Szeredi

parent
4a99f3c83d
commit
7bcd74b98d
@@ -29,6 +29,8 @@ struct ovl_fs {
|
||||
const struct cred *creator_cred;
|
||||
bool tmpfile;
|
||||
wait_queue_head_t copyup_wq;
|
||||
/* sb common to all layers */
|
||||
struct super_block *same_sb;
|
||||
};
|
||||
|
||||
/* private information held for every overlayfs dentry */
|
||||
|
Reference in New Issue
Block a user