Skip to content

Commit

Permalink
Remove jacobsa/fuse dependency from handles.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Jun 8, 2023
1 parent 6e4373f commit 2d138ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/handles.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (

"github.com/aws/aws-sdk-go/aws"

"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/fuseops"
"golang.org/x/sys/unix"

Expand Down Expand Up @@ -468,7 +467,7 @@ func (inode *Inode) setMetadata(metadata map[string]*string) {
if modeStr != nil {
i, err := strconv.ParseUint(string(modeStr), 0, 32)
if err == nil {
fm := fuse.ConvertFileMode(uint32(i))
fm := fuseops.ConvertFileMode(uint32(i))
var mask os.FileMode
if inode.fs.flags.EnablePerms {
mask = os.ModePerm
Expand Down Expand Up @@ -513,7 +512,7 @@ func (inode *Inode) setFileMode(newMode os.FileMode) (changed bool, err error) {
inode.setUserMeta(inode.fs.flags.RdevAttr, []byte(fmt.Sprintf("%d", inode.Attributes.Rdev)))
}
if inode.Attributes.Mode != defaultMode {
inode.setUserMeta(inode.fs.flags.FileModeAttr, []byte(fmt.Sprintf("%d", fuse.ConvertGolangMode(inode.Attributes.Mode))))
inode.setUserMeta(inode.fs.flags.FileModeAttr, []byte(fmt.Sprintf("%d", fuseops.ConvertGolangMode(inode.Attributes.Mode))))
} else {
inode.setUserMeta(inode.fs.flags.FileModeAttr, nil)
}
Expand Down

0 comments on commit 2d138ab

Please sign in to comment.