]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: enforce online defrag restriction for encrypted files
authorEric Whitney <enwlinux@gmail.com>
Mon, 29 Aug 2016 19:45:11 +0000 (15:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Aug 2016 19:45:11 +0000 (15:45 -0400)
commit14fbd4aa613bd5110556c281799ce36dc6f3ba97
treeb8132cd274844812a742b83b49dcc3148b2e6883
parentdfa2064b222c901b05c19ec5b7f42a25f7bee0e3
ext4: enforce online defrag restriction for encrypted files

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.

Cc: stable@vger.kernel.org
Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/move_extent.c