From 175ad1dd0bd2eeafd5704709436713d70b160852 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 20 May 2020 13:09:47 +0200 Subject: [PATCH] zfs: ZFSListFilesystemVersions: remove handling of io.ErrUnexpectedEOF ZFSListChan returns (*DatasetDoesNotExist) for the case mentioned in the comment --- zfs/versions.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zfs/versions.go b/zfs/versions.go index 20955e0..604f5ec 100644 --- a/zfs/versions.go +++ b/zfs/versions.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "io" "strconv" "strings" "time" @@ -231,10 +230,6 @@ func ZFSListFilesystemVersions(ctx context.Context, fs *DatasetPath, options Lis res = make([]FilesystemVersion, 0) for listResult := range listResults { if listResult.Err != nil { - if listResult.Err == io.ErrUnexpectedEOF { - // Since we specified the fs on the command line, we'll treat this like the filesystem doesn't exist - return []FilesystemVersion{}, nil - } return nil, listResult.Err }