]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw, nfs : Add hint to use -o sync when mouting, when erratic operations suggest it. 16210/head
authorAdam Kupczyk <akupczyk@redhat.com>
Fri, 7 Jul 2017 13:38:51 +0000 (15:38 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Fri, 7 Jul 2017 13:38:51 +0000 (15:38 +0200)
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/rgw/rgw_file.cc

index ca8a5c4b4b879af7e85b6252691382cea0881232..61f0d17bbbeb93c1b554171d6dbd428e80f6c632 100644 (file)
@@ -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)