]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fallocate: keep-size and zero-range are compatible
authorAntonio Russo <aerusso@aerusso.net>
Tue, 11 Feb 2025 12:32:58 +0000 (05:32 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 12:32:58 +0000 (05:32 -0700)
Do not prevent --keep-size and --zero-range from being specified at the
same time, bringing this check into alignment with the documentation,
and completes b85feb999c505222d4815638344c8883d5e4ab58.

Signed-off-by: Antonio Enrico Russo <aerusso@aerusso.net>
sys-utils/fallocate.c

index ded62f4b033765e7ebcf17733bfbe3beb0c9488e..5c338e0786171b90ec88c969e2279c26f4186d59 100644 (file)
@@ -315,7 +315,7 @@ int main(int argc, char **argv)
        static const ul_excl_t excl[] = {       /* rows and cols in ASCII order */
                { 'c', 'd', 'p', 'z' },
                { 'c', 'n' },
-               { 'c', 'd', 'i', 'n', 'p', 'x', 'z'},
+               { 'c', 'd', 'i', 'p', 'x', 'z'},
                { 0 }
        };
        int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT;