aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-25 17:34:29 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-25 17:34:29 -0700
commitc08ac536ed83ef2159a13ce826a249223272818f (patch)
tree3fa5a52c18c4caf743d31c7ce8195839436be7df /weed/shell/command_remote_mount.go
parent9bcf94b2b1b2e38165f027b7d45dcc78ca8c6981 (diff)
downloadseaweedfs-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.go5
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