diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-25 17:34:29 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-25 17:34:29 -0700 |
| commit | c08ac536ed83ef2159a13ce826a249223272818f (patch) | |
| tree | 3fa5a52c18c4caf743d31c7ce8195839436be7df /weed/shell/command_remote_mount.go | |
| parent | 9bcf94b2b1b2e38165f027b7d45dcc78ca8c6981 (diff) | |
| download | seaweedfs-c08ac536ed83ef2159a13ce826a249223272818f.tar.xz seaweedfs-c08ac536ed83ef2159a13ce826a249223272818f.zip | |
cloud drive: add support for Wasabi
* disable md5, sha256 checking to avoid reading one chunk twice
* single threaded upload to avoid chunk swapping (to be enhanced later)
Diffstat (limited to 'weed/shell/command_remote_mount.go')
| -rw-r--r-- | weed/shell/command_remote_mount.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go index f675d706e..9473cb373 100644 --- a/weed/shell/command_remote_mount.go +++ b/weed/shell/command_remote_mount.go @@ -11,6 +11,7 @@ import ( "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "io" + "strings" ) func init() { @@ -124,7 +125,9 @@ func (c *commandRemoteMount) syncMetadata(commandEnv *CommandEnv, writer io.Writ Name: name, }) if lookupErr != nil { - return fmt.Errorf("lookup %s: %v", dir, lookupErr) + if !strings.Contains(lookupErr.Error(), filer_pb.ErrNotFound.Error()) { + return fmt.Errorf("lookup %s: %v", dir, lookupErr) + } } mountToDirIsEmpty := true |
