fsstress: Add fallocate zero range operation
authorLukas Czerner <lczerner@redhat.com>
Thu, 13 Mar 2014 04:19:53 +0000 (15:19 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 13 Mar 2014 04:19:53 +0000 (15:19 +1100)
commit2d2d8536257b60b3f4c54e2e95fcdaead5cbbada
treef2d5660c13d72b28812f76a85d0c0f0873a686da
parent2dc43e03e67d0d635eac1c423f3f022aeed6023c
fsstress: Add fallocate zero range operation

This commit adds fzero operation support for fsstress, which is meant to
exercise fallocate FALLOC_FL_ZERO_RANGE support.

Also reorganise the common fallocate code into a single do_fallocate()
function and use flags use the right mode.

Also in order to make more obvious which fallocate mode fsstress is
testing translate fallocate flags into human readable strings.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
ltp/fsstress.c