ovl: check if all layers are on the same fs
authorAmir Goldstein <amir73il@gmail.com>
Wed, 22 Mar 2017 12:42:21 +0000 (08:42 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 5 May 2017 09:38:57 +0000 (11:38 +0200)
commit7bcd74b98d7bac3e5149894caaf72de6989af7f0
tree0b7b0bb5dd7848ad6572b50d64ad81059e2b5fae
parent4a99f3c83dc493c8ea84693d78cd792839c8aa64
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>
fs/overlayfs/overlayfs.h
fs/overlayfs/ovl_entry.h
fs/overlayfs/super.c
fs/overlayfs/util.c