Merge pull request #317 from ppcontrib/fixbookmark

fix for #316 - CRITICAL ERROR: bookmarks couldn't be listed for <volume>
This commit is contained in:
Jim Salter 2019-01-06 15:27:06 -05:00 committed by GitHub
commit 64a86ac8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}