Skip to content

Commit 1b8bd14

Browse files
committed
Remove unused code
1 parent 1c44024 commit 1b8bd14

File tree

1 file changed

+0
-22
lines changed
  • components/ws-daemon/nsinsider

1 file changed

+0
-22
lines changed

components/ws-daemon/nsinsider/main.go

-22
Original file line numberDiff line numberDiff line change
@@ -750,28 +750,6 @@ func syscallOpenTree(dfd int, path string, flags uintptr) (fd uintptr, err error
750750
return fd, nil
751751
}
752752

753-
type attr struct {
754-
attrSet uint64
755-
attrClr uint64
756-
propagation uint64
757-
userNs uint64
758-
}
759-
760-
func syscallMountSetAttr(dfd int, path string, flags uint, attr *attr, size uint) (err error) {
761-
var _p0 *byte
762-
763-
if _p0, err = unix.BytePtrFromString(path); err != nil {
764-
return err
765-
}
766-
767-
_, _, e := unix.Syscall6(uintptr(unix.SYS_MOUNT_SETATTR), uintptr(dfd), uintptr(unsafe.Pointer(_p0)),
768-
uintptr(flags), uintptr(unsafe.Pointer(attr)), uintptr(size), 0)
769-
if e != 0 {
770-
return e
771-
}
772-
return
773-
}
774-
775753
const (
776754
// FlagOpenTreeClone: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/mount.h#L62
777755
flagOpenTreeClone = 1

0 commit comments

Comments
 (0)