Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/passthrough/passthrough.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (self *Ptfs) Mknod(path string, mode uint32, dev uint64) (errc int) {
defer trace(path, mode, dev)(&errc)
defer setuidgid()()
path = filepath.Join(self.root, path)
return errno(syscall.Mknod(path, mode, int(dev)))
return errno(syscall_Mknod(path, mode, dev))
}

func (self *Ptfs) Mkdir(path string, mode uint32) (errc int) {
Expand Down
4 changes: 4 additions & 0 deletions examples/passthrough/port_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ func copyFusestatFromGostat(dst *fuse.Stat_t, src *syscall.Stat_t) {
func syscall_Statfs(path string, stat *syscall.Statfs_t) error {
return syscall.Statfs(path, stat)
}

func syscall_Mknod(path string, mode uint32, dev uint64) error {
return syscall.Mknod(path, mode, int(dev))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct.

4 changes: 4 additions & 0 deletions examples/passthrough/port_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ func copyFusestatFromGostat(dst *fuse.Stat_t, src *syscall.Stat_t) {
func syscall_Statfs(path string, stat *syscall.Statfs_t) error {
return syscall.Statfs(path, stat)
}

func syscall_Mknod(path string, mode uint32, dev uint64) error {
return syscall.Mknod(path, mode, dev)
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct.

4 changes: 4 additions & 0 deletions examples/passthrough/port_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ func copyFusestatFromGostat(dst *fuse.Stat_t, src *syscall.Stat_t) {
func syscall_Statfs(path string, stat *syscall.Statfs_t) error {
return syscall.Statfs(path, stat)
}

func syscall_Mknod(path string, mode uint32, dev uint64) error {
return syscall.Mknod(path, mode, int(dev))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct.

4 changes: 4 additions & 0 deletions examples/passthrough/port_netbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ func syscall_Statfs(path string, stat *syscall.Statfs_t) error {
*stat = syscall.Statfs_t{}
return nil
}

func syscall_Mknod(path string, mode uint32, dev uint64) error {
return syscall.Mknod(path, mode, int(dev))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct.

4 changes: 4 additions & 0 deletions examples/passthrough/port_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ func copyFusestatFromGostat(dst *fuse.Stat_t, src *syscall.Stat_t) {
func syscall_Statfs(path string, stat *syscall.Statfs_t) error {
return syscall.Statfs(path, stat)
}

func syscall_Mknod(path string, mode uint32, dev uint64) error {
return syscall.Mknod(path, mode, int(dev))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct.

Loading