From a65848e4e7f13d9856c1ead4302f22c31a0c919f Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Fri, 7 Jul 2017 15:38:51 +0200 Subject: [PATCH] radosgw, nfs : Add hint to use -o sync when mouting, when erratic operations suggest it. Signed-off-by: Adam Kupczyk --- src/rgw/rgw_file.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index ca8a5c4b4b87..61f0d17bbbeb 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -1124,6 +1124,7 @@ namespace rgw { << __func__ << " " << object_name() << " non-0 initial write position " << off + << " (mounting with -o sync required)" << dendl; return -EIO; } @@ -1297,8 +1298,13 @@ namespace rgw { op_ret = 0; /* check guards (e.g., contig write) */ - if (eio) + if (eio) { + ldout(s->cct, 5) + << " chunks arrived in wrong order" + << " (mounting with -o sync required)" + << dendl; return -EIO; + } size_t len = data.length(); if (! len) -- 2.47.3