summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-02-07 21:56:51 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-02-07 21:56:51 -0800
commit21a1dbd85c9089113f533e2431255faf013986ff (patch)
treed7560c2bbd52012cc6f1e6cc4ab7278ecefb7398 /qa
parentd63303de9702e28da0992899855ba4ea9b71738d (diff)
downloadceph-21a1dbd85c9089113f533e2431255faf013986ff.tar.gz
trivial_libceph: need O_RDWR
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'qa')
-rw-r--r--qa/libceph/trivial_libceph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/libceph/trivial_libceph.c b/qa/libceph/trivial_libceph.c
index fff6eae25a7..9093e97e71e 100644
--- a/qa/libceph/trivial_libceph.c
+++ b/qa/libceph/trivial_libceph.c
@@ -51,7 +51,7 @@ int main(int argc, const char **argv)
exit(1);
}
- fd = ceph_open(cmount, argv[2], O_CREAT|O_TRUNC, 0777);
+ fd = ceph_open(cmount, argv[2], O_CREAT|O_TRUNC|O_RDWR, 0777);
if (fd < 0) {
fprintf(stderr, "ceph_open=%d\n", fd);
exit(1);