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 @@ -1759,16 +1759,7 @@ where
1759
1759
}
1760
1760
}
1761
1761
1762
- if 2u64 * meta_growth > backstore. available_in_backstore ( ) {
1763
- self . out_of_meta_space = true ;
1764
- (
1765
- self . set_error_mode ( ) ,
1766
- Err ( StratisError :: Msg (
1767
- "Not enough unallocated space available on the pool to extend metadata device"
1768
- . to_string ( ) ,
1769
- ) ) ,
1770
- )
1771
- } else if meta_growth > Sectors ( 0 ) {
1762
+ if meta_growth > Sectors ( 0 ) {
1772
1763
let ext = do_extend (
1773
1764
& mut self . thin_pool ,
1774
1765
backstore,
@@ -1779,8 +1770,17 @@ where
1779
1770
) ;
1780
1771
1781
1772
match ext {
1782
- Ok ( Sectors ( 0 ) ) | Err ( _) => ( false , ext) ,
1773
+ Ok ( Sectors ( 0 ) ) => {
1774
+ self . out_of_meta_space = true ;
1775
+ (
1776
+ self . set_error_mode ( ) ,
1777
+ Err ( StratisError :: Msg (
1778
+ "Not enough unallocated space available on the pool to extend metadata device" . to_string ( ) ,
1779
+ ) ) ,
1780
+ )
1781
+ }
1783
1782
Ok ( _) => ( true , ext) ,
1783
+ Err ( _) => ( false , ext) ,
1784
1784
}
1785
1785
} else {
1786
1786
( false , Ok ( Sectors ( 0 ) ) )
You can’t perform that action at this time.
0 commit comments