ovl: copy up before encoding non-connectable dir file handle
authorAmir Goldstein <amir73il@gmail.com>
Thu, 18 Jan 2018 11:15:26 +0000 (13:15 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:01 +0000 (11:26 +0100)
commit05e1f11816d7952ef26cc37fdd6637f834d675a9
tree99300526916d405ff06d2bd9d789372367491c4a
parentb305e8443f3a87e794927085106db7ebc99a4f74
ovl: copy up before encoding non-connectable dir file handle

Decoding a merge dir, whose origin's parent is under a redirected
lower dir is not always possible. As a simple aproximation, we do
not encode lower dir file handles when overlay has multiple lower
layers and origin is below the topmost lower layer.

We should later relax this condition and copy up only the parent
that is under a redirected lower.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c