Skip to content

Commit

Permalink
Merge pull request #692 from tklauser/x-sys-unix-const
Browse files Browse the repository at this point in the history
pkg/ns: use file system magic numbers from golang.org/x/sys/unix
  • Loading branch information
squeed authored Jan 26, 2022
2 parents 5a4ecc5 + 9649ec1 commit f531419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ns/ns_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ var _ NetNS = &netNS{}

const (
// https://github.com/torvalds/linux/blob/master/include/uapi/linux/magic.h
NSFS_MAGIC = 0x6e736673
PROCFS_MAGIC = 0x9fa0
NSFS_MAGIC = unix.NSFS_MAGIC
PROCFS_MAGIC = unix.PROC_SUPER_MAGIC
)

type NSPathNotExistErr struct{ msg string }
Expand Down

0 comments on commit f531419

Please sign in to comment.