Commit e4522bc8 authored by Vyacheslav Yurkov's avatar Vyacheslav Yurkov Committed by Miklos Szeredi

ovl: disable decoding null uuid with redirect_dir

Currently decoding origin with lower null uuid is not allowed unless user
opted-in to one of the new features that require following the lower inode
of non-dir upper (index, xino, metacopy). Now we add redirect_dir too to
that feature list.
Signed-off-by: default avatarVyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
Reviewed-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 096a218a
...@@ -1600,7 +1600,7 @@ static bool ovl_lower_uuid_ok(struct ovl_fs *ofs, const uuid_t *uuid) ...@@ -1600,7 +1600,7 @@ static bool ovl_lower_uuid_ok(struct ovl_fs *ofs, const uuid_t *uuid)
* lower inode of non-dir upper. * lower inode of non-dir upper.
*/ */
if (!ofs->config.index && !ofs->config.metacopy && if (!ofs->config.index && !ofs->config.metacopy &&
ofs->config.xino != OVL_XINO_ON && !ofs->config.redirect_dir && ofs->config.xino != OVL_XINO_ON &&
uuid_is_null(uuid)) uuid_is_null(uuid))
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment