We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16104c7 commit d6e0e9cCopy full SHA for d6e0e9c
1 file changed
vmm/src/app/qemu.rs
@@ -70,7 +70,7 @@ pub struct State {
70
fn create_hd(
71
image_file: impl AsRef<Path>,
72
backing_file: Option<impl AsRef<Path>>,
73
- size: &str
+ size: &str,
74
) -> Result<()> {
75
let mut command = Command::new("qemu-img");
76
command.arg("create").arg("-f").arg("qcow2");
@@ -341,11 +341,7 @@ impl VmConfig {
341
let disk_size = format!("{}G", self.manifest.disk_size);
342
let hda_path = workdir.hda_path();
343
if !hda_path.exists() {
344
- create_hd(
345
- &hda_path,
346
- self.image.hda.as_ref(),
347
- &disk_size
348
- )?;
+ create_hd(&hda_path, self.image.hda.as_ref(), &disk_size)?;
349
}
350
if !cfg.user.is_empty() {
351
fs_err::set_permissions(&hda_path, Permissions::from_mode(0o660))?;
0 commit comments