]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: use native definition of O_DIRECT flag
authorEric Whitney <enwlinux@gmail.com>
Tue, 26 Feb 2013 21:03:22 +0000 (21:03 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 5 Mar 2013 20:05:52 +0000 (14:05 -0600)
commit5825ecd3b99ed8c177895d5e6a830133fed384ea
tree98ea5cb3437c37ba4193a916d2d98ca7c96a6dd1
parentedce9e677fda49ca20d6059248937ab4af65d053
xfstests: use native definition of O_DIRECT flag

The definition of O_DIRECT in src/trunc.c causes xfstest 125 to fail
when run on a Pandaboard.  On ARM, the value used (0x040000) is
O_DIRECTORY rather than O_DIRECT as it is on x86.  Prefer the platform's
native definition of O_DIRECT supplied by fcntl.h if available.  Also,
fix a couple of error messages to properly reflect their context.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
src/trunc.c