Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e7125ec authored by Eric Whitney's avatar Eric Whitney Committed by Eric Biggers
Browse files

UPSTREAM: ext4: enforce online defrag restriction for encrypted files



commit 14fbd4aa613bd5110556c281799ce36dc6f3ba97 upstream.

Online defragging of encrypted files is not currently implemented.
However, the move extent ioctl can still return successfully when
called.  For example, this occurs when xfstest ext4/020 is run on an
encrypted file system, resulting in a corrupted test file and a
corresponding test failure.

Until the proper functionality is implemented, fail the move extent
ioctl if either the original or donor file is encrypted.

Signed-off-by: default avatarEric Whitney <enwlinux@gmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 76a8f17e0b850d5bb842097b0ee9c2e96af806a0)
Change-Id: Ifaa55e8b4acc07a93a246ded4c233250cfbc2aac
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent fca9d962
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment