From: xie xingguo Date: Fri, 19 Feb 2016 03:49:09 +0000 (+0800) Subject: os/filestore: fast abort when basedir no more exists X-Git-Tag: v10.1.0~264^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=144fa29d6ab19678e83049f1d0354b5314ee894d;p=ceph.git os/filestore: fast abort when basedir no more exists Signed-off-by: xie xingguo --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 548b1d926f75..ea4e46da9fd8 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -692,6 +692,7 @@ int FileStore::statfs(struct statfs *buf) if (::statfs(basedir.c_str(), buf) < 0) { int r = -errno; assert(!m_filestore_fail_eio || r != -EIO); + assert(r != -ENOENT); return r; } return 0;