]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fallocate: rework incompatible options
authorAntonio Russo <aerusso@aerusso.net>
Sun, 2 Mar 2025 19:58:07 +0000 (12:58 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Mar 2025 19:58:07 +0000 (12:58 -0700)
Follow up to d95f9a6, addressing ordering requirements, natural
incompatibilities between various options, and limitations of
posix_fallocate.

sys-utils/fallocate.c

index 5c338e0786171b90ec88c969e2279c26f4186d59..fff75b03f67b851e7949a3731eaa3d8854cff3ca 100644 (file)
@@ -313,9 +313,8 @@ 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', 'p', 'x', 'z'},
+               { 'c', 'i', 'n', 'x' },
                { 0 }
        };
        int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT;