From 452e3ee7804f82b230006b7d6bb0935c00da8469 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 19 Sep 2013 06:41:51 +0200 Subject: [PATCH] bug fix: use filesysetm_path for LVM/iSCSI storage So that the genrice Storage::Plugin code works again (get_subdir() fails on this type of storage). --- PVE/Storage/ISCSIPlugin.pm | 2 +- PVE/Storage/LVMPlugin.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm index a445f85..0fe8d69 100644 --- a/PVE/Storage/ISCSIPlugin.pm +++ b/PVE/Storage/ISCSIPlugin.pm @@ -277,7 +277,7 @@ sub parse_volname { die "unable to parse iscsi volume name '$volname'\n"; } -sub path { +sub filesystem_path { my ($class, $scfg, $volname) = @_; my ($vtype, $name, $vmid) = $class->parse_volname($volname); diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index 845ebc5..ff2a6ec 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -222,7 +222,7 @@ sub parse_volname { die "unable to parse lvm volume name '$volname'\n"; } -sub path { +sub filesystem_path { my ($class, $scfg, $volname) = @_; my ($vtype, $name, $vmid) = $class->parse_volname($volname);