diff --git a/caching/cache_metadata_size.cc b/caching/cache_metadata_size.cc index 6ead5c7..7584da6 100644 --- a/caching/cache_metadata_size.cc +++ b/caching/cache_metadata_size.cc @@ -110,7 +110,7 @@ namespace { if (fs.block_size && !fs.device_size) throw runtime_error("If you specify --block-size you must also give --device-size."); - + if (fs.nr_blocks) return *fs.nr_blocks;