Skip to content

Commit

Permalink
fallocate: keep-size and zero-range are compatible
Browse files Browse the repository at this point in the history
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 b85feb9.

Signed-off-by: Antonio Enrico Russo <aerusso@aerusso.net>
  • Loading branch information
aerusso authored Feb 11, 2025
1 parent a4436c7 commit 09786b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys-utils/fallocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 09786b7

Please sign in to comment.