diff options
author | Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> | 2021-05-27 19:45:47 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-08-17 11:47:44 +0200 |
commit | 1fc31aac96d7060ecee18124be6de18cb2268922 (patch) | |
tree | 5f801c85931ced54e5643ce274b351a433b08214 /fs/overlayfs/Makefile | |
parent | ca45275cd6b63e917eef681f9f15978b96afdbbe (diff) |
ovl: do not set overlay.opaque for new directories
Enable optimizations only if user opted-in for any of extended features.
If optimization is enabled, it breaks existing use case when a lower layer
directory appears after directory was created on a merged layer. If
overlay.opaque is applied, new files on lower layer are not visible.
Consider the following scenario:
- /lower and /upper are mounted to /merged
- directory /merged/new-dir is created with a file test1
- overlay is unmounted
- directory /lower/new-dir is created with a file test2
- overlay is mounted again
If opaque is applied by default, file test2 is not going to be visible
without explicitly clearing the overlay.opaque attribute
Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/Makefile')
0 files changed, 0 insertions, 0 deletions