btrfs: remove unnecessary mkpath call
The existence of the original volume should imply the existence of its parent directory, after all... And with the new typed subdirectories this was wrong. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Fiona Ebner
parent
a9315a0ed3
commit
9b7fa1e758
@ -529,9 +529,6 @@ sub volume_snapshot {
|
||||
$snap_path = raw_file_to_subvol($snap_path);
|
||||
}
|
||||
|
||||
my $snapshot_dir = $class->get_subdir($scfg, 'images') . "/$vmid";
|
||||
mkpath $snapshot_dir;
|
||||
|
||||
$class->btrfs_cmd(['subvolume', 'snapshot', '-r', '--', $path, $snap_path]);
|
||||
return undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user