]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Fix ENOSPC crash message text
authorDavid Zafman <dzafman@redhat.com>
Tue, 14 Feb 2017 22:38:53 +0000 (14:38 -0800)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Mon, 19 Jun 2017 05:41:22 +0000 (09:41 +0400)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 50cfe03fcba253c8380b21043ed03879134d6836)

Conflicts:
src/os/bluestore/BlueStore.cc: leave bluestore code as is,
  bluestore users should use Kraken or Luminous

src/os/filestore/FileStore.cc
src/os/kstore/KStore.cc
src/os/memstore/MemStore.cc

index c47b0d0d2eae4b4b46f35456db197b76a81c21bd..6f3af26fb2dea6b930766d06ebf8e470b8df85cf 100644 (file)
@@ -2895,7 +2895,7 @@ void FileStore::_do_transaction(
        } else if (r == -ENOSPC) {
          // For now, if we hit _any_ ENOSPC, crash, before we do any damage
          // by partially applying transactions.
-         msg = "ENOSPC handling not implemented";
+         msg = "ENOSPC from disk filesystem, misconfigured cluster";
        } else if (r == -ENOTEMPTY) {
          msg = "ENOTEMPTY suggests garbage data in osd data dir";
        } else if (r == -EPERM) {
index a2250d8bfdf217894b71fb35e3c65610d97b5acc..0bdee1f109f565f9d3ec0b55e113e1a7b4450ce8 100644 (file)
@@ -2774,7 +2774,7 @@ void KStore::_txc_add_transaction(TransContext *txc, Transaction *t)
        if (r == -ENOSPC)
          // For now, if we hit _any_ ENOSPC, crash, before we do any damage
          // by partially applying transactions.
-         msg = "ENOSPC handling not implemented";
+         msg = "ENOSPC from key value store, misconfigured cluster";
 
        if (r == -ENOTEMPTY) {
          msg = "ENOTEMPTY suggests garbage data in osd data dir";
index eb06f18592d279be32fc8388f0b185bf4e636cc5..ec647d3b580f37b3cc2951d4f539b00f1134c664 100644 (file)
@@ -985,7 +985,7 @@ void MemStore::_do_transaction(Transaction& t)
        if (r == -ENOSPC)
          // For now, if we hit _any_ ENOSPC, crash, before we do any damage
          // by partially applying transactions.
-         msg = "ENOSPC handling not implemented";
+         msg = "ENOSPC from MemStore, misconfigured cluster or insufficient memory";
 
        if (r == -ENOTEMPTY) {
          msg = "ENOTEMPTY suggests garbage data in osd data dir";