fix: error out if snapname is set in filesystem_path

Pure currently does not support direct mounting of snapshots.
As we currently silently ignore the snapname field at least error
out if we receive a non empty snapname. Its unclear if this is
still used as vzdump nowadays does live backups.

Signed-off-by: Peter Lieven <pl@dlhnet.de>
This commit is contained in:
Peter Lieven
2025-03-19 17:16:34 +01:00
parent b4c81dd5a2
commit e0fcb81e69
+2
View File
@@ -892,6 +892,8 @@ sub filesystem_path {
my ( $class, $scfg, $volname, $snapname ) = @_;
print "Debug :: PVE::Storage::Custom::PureStoragePlugin::sub::filesystem_path\n" if $DEBUG;
die "Error :: filesystem_path: snapshot is not implemented ($snapname)\n" if defined($snapname);
# do we even need this?
my ( $vtype, undef, $vmid ) = $class->parse_volname( $volname );