File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/engine/strat_engine/thinpool Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1761,16 +1761,7 @@ where
1761
1761
}
1762
1762
}
1763
1763
1764
- if 2u64 * meta_growth > backstore. available_in_backstore ( ) {
1765
- self . out_of_meta_space = true ;
1766
- (
1767
- self . set_error_mode ( ) ,
1768
- Err ( StratisError :: Msg (
1769
- "Not enough unallocated space available on the pool to extend metadata device"
1770
- . to_string ( ) ,
1771
- ) ) ,
1772
- )
1773
- } else if meta_growth > Sectors ( 0 ) {
1764
+ if meta_growth > Sectors ( 0 ) {
1774
1765
let ext = do_extend (
1775
1766
& mut self . thin_pool ,
1776
1767
backstore,
@@ -1781,8 +1772,17 @@ where
1781
1772
) ;
1782
1773
1783
1774
match ext {
1784
- Ok ( Sectors ( 0 ) ) | Err ( _) => ( false , ext) ,
1775
+ Ok ( Sectors ( 0 ) ) => {
1776
+ self . out_of_meta_space = true ;
1777
+ (
1778
+ self . set_error_mode ( ) ,
1779
+ Err ( StratisError :: Msg (
1780
+ "Not enough unallocated space available on the pool to extend metadata device" . to_string ( ) ,
1781
+ ) ) ,
1782
+ )
1783
+ }
1785
1784
Ok ( _) => ( true , ext) ,
1785
+ Err ( _) => ( false , ext) ,
1786
1786
}
1787
1787
} else {
1788
1788
( false , Ok ( Sectors ( 0 ) ) )
You can’t perform that action at this time.
0 commit comments