Skip to content

Commit

Permalink
osd: Fix ENOSPC crash message text
Browse files Browse the repository at this point in the history
Signed-off-by: David Zafman <dzafman@redhat.com>
  • Loading branch information
dzafman committed Feb 24, 2017
1 parent 7ac2521 commit 50cfe03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8224,7 +8224,7 @@ void BlueStore::_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 bluestore, misconfigured cluster";

if (r == -ENOTEMPTY) {
msg = "ENOTEMPTY suggests garbage data in osd data dir";
Expand Down
2 changes: 1 addition & 1 deletion src/os/filestore/FileStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3006,7 +3006,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) {
Expand Down
2 changes: 1 addition & 1 deletion src/os/kstore/KStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2499,7 +2499,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";
Expand Down
2 changes: 1 addition & 1 deletion src/os/memstore/MemStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,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";
Expand Down

0 comments on commit 50cfe03

Please sign in to comment.