From: Adam Kupczyk Date: Fri, 7 Jul 2017 13:38:51 +0000 (+0200) Subject: radosgw, nfs : Add hint to use -o sync when mouting, when erratic operations suggest it. X-Git-Tag: v13.0.1~1118^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a65848e4e7f13d9856c1ead4302f22c31a0c919f;p=ceph.git radosgw, nfs : Add hint to use -o sync when mouting, when erratic operations suggest it. Signed-off-by: Adam Kupczyk --- 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)