summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorChandan Rajendra <chandan@linux.vnet.ibm.com>2017-11-01 20:12:49 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-11-09 10:23:27 +0100
commit2a9c6d066e98c1fe51a735b1439929f2f2afd891 (patch)
tree31f76a4243df12764b67ca8509da7b3ab1ed6ced /fs/overlayfs/ovl_entry.h
parentb93436320c1e9089a055941523571cd7c037f7cb (diff)
downloadlinux-2a9c6d066e98c1fe51a735b1439929f2f2afd891.tar.bz2
ovl: allocate anonymous devs for lowerdirs
Generate unique values of st_dev per lower layer for non-samefs overlay mount. The unique values are obtained by allocating anonymous bdevs for each of the lowerdirs in the overlayfs instance. The anonymous bdev is going to be returned by stat(2) for lowerdir non-dir entries in non-samefs case. [amir: split from ovl_getattr() and re-structure patches] Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 1e28329b5db8..93eb6a044dd2 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -19,6 +19,7 @@ struct ovl_config {
struct ovl_layer {
struct vfsmount *mnt;
+ dev_t pseudo_dev;
};
struct ovl_path {