From d0a6ff9d27bd9ad4f03ee9e6bbed5b2db2d37250 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 17 Aug 2013 08:30:26 -0700 Subject: [PATCH] os/FileStore: initialize blk_size on _detect_fs() This was missed by a25d73effb38118602bc73da0aa258c639f69c2c. Signed-off-by: Sage Weil --- src/os/FileStore.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index a84cc69858ce..80561056daab 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -788,6 +788,8 @@ int FileStore::_detect_fs() if (r < 0) return -errno; + blk_size = st.f_bsize; + #if defined(__linux__) if (st.f_type == BTRFS_SUPER_MAGIC) { dout(0) << "mount detected btrfs" << dendl; -- 2.47.3