filesetup: ensure that we align file starting offset
authorJens Axboe <axboe@fb.com>
Mon, 9 May 2016 14:42:40 +0000 (08:42 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 9 May 2016 14:42:40 +0000 (08:42 -0600)
commitc465cd14ca958dfdb87bb1998add722d62ae3691
treea757dcf7de897361b30da636886b9676af76d62a
parentd5bdff69e877a3f65928278df9d252d8881ff864
filesetup: ensure that we align file starting offset

If --offset=xx is given, and xx isn't a multiple of the block size,
then align it if we're doing O_DIRECT IO.

Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c