mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ovl: disable index when no xattr support
Overlayfs falls back to index=off if lower/upper fs does not support file handles. Do the same if upper fs does not support xattr. Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
parent
9678e63030
commit
a683737ba9
1 changed files with 2 additions and 1 deletions
|
|
@ -968,7 +968,8 @@ static int ovl_make_workdir(struct ovl_fs *ofs, struct path *workpath)
|
|||
err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1, 0);
|
||||
if (err) {
|
||||
ofs->noxattr = true;
|
||||
pr_warn("overlayfs: upper fs does not support xattr.\n");
|
||||
ofs->config.index = false;
|
||||
pr_warn("overlayfs: upper fs does not support xattr, falling back to index=off.\n");
|
||||
err = 0;
|
||||
} else {
|
||||
vfs_removexattr(ofs->workdir, OVL_XATTR_OPAQUE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue