Skip to content

Commit

Permalink
return error when mountoption is invalid. remove +x of generated prot…
Browse files Browse the repository at this point in the history
…o file
  • Loading branch information
sfc-gh-guwang committed Dec 14, 2024
1 parent f3fd780 commit 8d24db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/filesystem/virtual/configuration/fuse_mount_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/buildbarn/bb-storage/pkg/util"
go_fuse "github.com/hanwen/go-fuse/v2/fuse"
"github.com/jmespath/go-jmespath"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

func (m *fuseMount) Expose(terminationGroup program.Group, rootDirectory virtual.Directory) error {
Expand Down Expand Up @@ -72,7 +74,7 @@ func (m *fuseMount) Expose(terminationGroup program.Group, rootDirectory virtual
case virtualpb.FUSEMountConfiguration_FUSERMOUNT:
// No additional options needed for FUSERMOUNT
default:
// Default to use FUSERMOUNT
return status.Error(codes.InvalidArgument, "Invalid mount method")
}

server, err := go_fuse.NewServer(
Expand Down
Empty file modified pkg/proto/configuration/filesystem/virtual/virtual.pb.go
100755 → 100644
Empty file.

0 comments on commit 8d24db8

Please sign in to comment.