Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix compilation error for windows

Chris Lua4740ca83654
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go
index 41b4e9f907..b53c8c4190 100644
--- a/weed/server/filer_grpc_server.go
+++ b/weed/server/filer_grpc_server.go
@@ -4,10 +4,10 @@ import (
"context"
"strconv"
- "bazil.org/fuse"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
+ "fmt"
)
func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.LookupDirectoryEntryRequest) (*filer_pb.LookupDirectoryEntryResponse, error) {
@@ -17,7 +17,7 @@ func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.L
return nil, err
}
if !found {
- return nil, fuse.ENOENT
+ return nil, fmt.Errorf("%s not found under %s", req.Name, req.Directory)
}
return &filer_pb.LookupDirectoryEntryResponse{