File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
crates/redisctl/src/commands/enterprise Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -396,16 +396,13 @@ fn perform_preflight_checks(output_path: &Path) -> AnyhowResult<()> {
396396 }
397397
398398 // Check available disk space (warn if less than 1GB)
399+ // Only perform check on Unix systems where we can read block count
400+ #[ cfg( unix) ]
399401 if let Ok ( metadata) = fs:: metadata ( parent_dir) {
400- // This is platform-specific and would need proper implementation
401- // For now, just a placeholder check
402- #[ cfg( unix) ]
403- {
404- use std:: os:: unix:: fs:: MetadataExt ;
405- // Basic check - would need proper disk space checking
406- if metadata. blocks ( ) < 1000000 {
407- eprintln ! ( "Warning: Low disk space detected" ) ;
408- }
402+ use std:: os:: unix:: fs:: MetadataExt ;
403+ // Basic check - would need proper disk space checking
404+ if metadata. blocks ( ) < 1000000 {
405+ eprintln ! ( "Warning: Low disk space detected" ) ;
409406 }
410407 }
411408
You can’t perform that action at this time.
0 commit comments