UPSTREAM: ext4: enforce online defrag restriction for encrypted files
commit 14fbd4aa 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:Eric Whitney <enwlinux@gmail.com> Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 76a8f17e) Change-Id: Ifaa55e8b4acc07a93a246ded4c233250cfbc2aac Signed-off-by:
Eric Biggers <ebiggers@google.com>
Loading
Please sign in to comment