ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files
authorTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jun 2010 02:04:39 +0000 (22:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jun 2010 02:04:39 +0000 (22:04 -0400)
commit1f5a81e41f8b1a782c68d3843e9ec1bfaadf7d72
tree471ac26edd4fbdfda5a3b091b9d583d579c882cb
parent67a3e12b05e055c0415c556a315a3d3eb637e29e
ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files

Dan Roseberg has reported a problem with the MOVE_EXT ioctl.  If the
donor file is an append-only file, we should not allow the operation
to proceed, lest we end up overwriting the contents of an append-only
file.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dan Rosenberg <dan.j.rosenberg@gmail.com>
fs/ext4/move_extent.c