Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Oct 20, 2022
1 parent 1c44024 commit 1b8bd14
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions components/ws-daemon/nsinsider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,28 +750,6 @@ func syscallOpenTree(dfd int, path string, flags uintptr) (fd uintptr, err error
return fd, nil
}

type attr struct {
attrSet uint64
attrClr uint64
propagation uint64
userNs uint64
}

func syscallMountSetAttr(dfd int, path string, flags uint, attr *attr, size uint) (err error) {
var _p0 *byte

if _p0, err = unix.BytePtrFromString(path); err != nil {
return err
}

_, _, e := unix.Syscall6(uintptr(unix.SYS_MOUNT_SETATTR), uintptr(dfd), uintptr(unsafe.Pointer(_p0)),
uintptr(flags), uintptr(unsafe.Pointer(attr)), uintptr(size), 0)
if e != 0 {
return e
}
return
}

const (
// FlagOpenTreeClone: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/mount.h#L62
flagOpenTreeClone = 1
Expand Down

0 comments on commit 1b8bd14

Please sign in to comment.