Merge pull request #692 from tklauser/x-sys-unix-const

pkg/ns: use file system magic numbers from golang.org/x/sys/unix
This commit is contained in:
Casey Callendrello
2022-01-26 18:26:03 +01:00
committed by GitHub

View File

@ -106,8 +106,8 @@ var _ NetNS = &netNS{}
const ( const (
// https://github.com/torvalds/linux/blob/master/include/uapi/linux/magic.h // https://github.com/torvalds/linux/blob/master/include/uapi/linux/magic.h
NSFS_MAGIC = 0x6e736673 NSFS_MAGIC = unix.NSFS_MAGIC
PROCFS_MAGIC = 0x9fa0 PROCFS_MAGIC = unix.PROC_SUPER_MAGIC
) )
type NSPathNotExistErr struct{ msg string } type NSPathNotExistErr struct{ msg string }