This allows testing FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE. Signed-off-by: Calvin Owens <calvinowens@xxxxxx> --- io/prealloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/io/prealloc.c b/io/prealloc.c index a9d66cc..2a4bcdc 100644 --- a/io/prealloc.c +++ b/io/prealloc.c @@ -201,19 +201,19 @@ fallocate_f( while ((c = getopt(argc, argv, "cikpu")) != EOF) { switch (c) { case 'c': - mode = FALLOC_FL_COLLAPSE_RANGE; + mode |= FALLOC_FL_COLLAPSE_RANGE; break; case 'i': - mode = FALLOC_FL_INSERT_RANGE; + mode |= FALLOC_FL_INSERT_RANGE; break; case 'k': - mode = FALLOC_FL_KEEP_SIZE; + mode |= FALLOC_FL_KEEP_SIZE; break; case 'p': - mode = FALLOC_FL_PUNCH_HOLE; + mode |= FALLOC_FL_PUNCH_HOLE; break; case 'u': - mode = FALLOC_FL_UNSHARE_RANGE; + mode |= FALLOC_FL_UNSHARE_RANGE; break; default: command_usage(&falloc_cmd); -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html