filesetup: keep OS_O_DIRECT flag when pre-allocating file
authorweiping zhang <zhangweiping@didichuxing.com>
Sat, 29 Jul 2017 08:47:59 +0000 (16:47 +0800)
committerweiping zhang <zhangweiping@didichuxing.com>
Sun, 30 Jul 2017 12:07:32 +0000 (20:07 +0800)
commit6e344dc3445bfec0583072e82bea728ab8d54d58
tree7135347666211a77b929cf6fecc185543f7d61e5
parentf271a3f2d598b9dd8036543071cad573295d8e8e
filesetup: keep OS_O_DIRECT flag when pre-allocating file

When direct=1 the file open for pre-allocation should also set OS_O_DIRECT so
we fail earlier if the filesystem/file doesn't support direct operations.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
filesetup.c