fix for #316 - CRITICAL ERROR: bookmarks couldn't be listed for <volume>

This commit is contained in:
WG Dev 2019-01-06 10:46:24 +01:00
parent a7cb1e2226
commit f941d7f782
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ sub getbookmarks() {
close FH or $error = 1;
if ($error == 1) {
if ($rawbookmarks[0] =~ /invalid type/) {
if ($rawbookmarks[0] =~ /invalid type/ or $rawbookmarks[0] =~ /operation not applicable to datasets of this type/) {
# no support for zfs bookmarks, return empty hash
return %bookmarks;
}