mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
zfs: ZFSListFilesystemVersions: remove handling of io.ErrUnexpectedEOF
ZFSListChan returns (*DatasetDoesNotExist) for the case mentioned in the comment
This commit is contained in:
parent
728e97700f
commit
175ad1dd0b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user