]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: require that fast symlinks don't have EXT4_EXTENTS_FL
authorEric Biggers <ebiggers@google.com>
Sat, 3 Mar 2018 00:59:22 +0000 (16:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Mar 2018 22:49:53 +0000 (17:49 -0500)
commit2c733c3f86fa83e2f7b9b5430fade71b11dce6f7
treec1ea72ae01044cd89143cf9958fa6f793b0ae918
parent9666fbfbd5d2f6a94566c427c3769ca73d3d01c7
e2fsck: require that fast symlinks don't have EXT4_EXTENTS_FL

It doesn't make sense for EXT4_EXTENTS_FL to be set on a fast symlink.
The kernel doesn't set it, and it ignores it if set.  Meanwhile, e2fsck
is stricter: it will try to validate the extent tree, which will almost
certainly fail (assuming the symlink is, in fact, a fast symlink).

Make this behavior more explicit by rejecting EXT4_EXTENTS_FL for fast
symlinks, rather than going ahead and trying to validate an extent tree.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c