]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: fast abort when basedir no more exists
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 19 Feb 2016 03:49:09 +0000 (11:49 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 23 Feb 2016 00:53:20 +0000 (08:53 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/filestore/FileStore.cc

index 548b1d926f75b2285bd5708c9e0ce9e45d7fe23c..ea4e46da9fd8c78d4b260073cd76d7a9bc6fe9e3 100644 (file)
@@ -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;