ENOTEMPTY implies rmdir failed due to stray crap in the directory. We
should fail now, instead of later when we restart cosd and have stray
data sitting around.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
assert(0);
}
+ if (r == -ENOTEMPTY) {
+ assert(0 == "ENOTEMPTY suggests garbage data in osd data dir");
+ }
if (r == -ENOSPC) {
// For now, if we hit _any_ ENOSPC, crash, before we do any damage
// by partially applying transactions.