From: Antonio Russo Date: Tue, 11 Feb 2025 12:32:58 +0000 (-0700) Subject: fallocate: keep-size and zero-range are compatible X-Git-Tag: v2.42-start~49^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09786b766afed394e4933adbaf6c5f23afbecaee;p=thirdparty%2Futil-linux.git fallocate: keep-size and zero-range are compatible 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 --- diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index ded62f4b0..5c338e078 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -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;