Windows VM storage is created no-CoW (chattr +C), as dockurr asks on btrfs
Browse files at this commit09e2f6e3e64696dceb77ba9bc2caded5fa60f1b0Parent: 2e89356- fix
- Windows VM storage is created no-CoW (chattr +C), as dockurr asks on btrfs
1 changed file +4 -0
crates/client/src/release.rsmodified+4 -0
| @@ -424,6 +424,10 @@ fn create_windows(job: Job, key: &Path, cx: &Cx) -> Result<(), String> { | |||
| 424 | .arg(key), | 424 | .arg(key), |
| 425 | )?; | 425 | )?; |
| 426 | } | 426 | } |
| 427 | + let _ = Command::new("chattr") | ||
| 428 | + .arg("+C") | ||
| 429 | + .arg(dir.join("storage")) | ||
| 430 | + .output(); | ||
| 427 | let public = fs::read_to_string(key.with_extension("pub")).map_err(|e| e.to_string())?; | 431 | let public = fs::read_to_string(key.with_extension("pub")).map_err(|e| e.to_string())?; |
| 428 | fs::write( | 432 | fs::write( |
| 429 | dir.join("oem/install.bat"), | 433 | dir.join("oem/install.bat"), |