diff options
author | Michael Pratt <mpratt@google.com> | 2018-10-08 11:38:02 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-10-08 11:39:54 -0700 |
commit | 569c2b06c47d269d961405fa652d45e51860d005 (patch) | |
tree | aabbf7fc7e786d0699d9ea1d34f7048fb4339761 /pkg/abi/linux/fs.go | |
parent | e9e8be661328661b5527f1643727b9a13bbeab48 (diff) |
Statfs Namelen should be NAME_MAX not PATH_MAX
We accidentally set the wrong maximum. I've also added PATH_MAX and
NAME_MAX to the linux abi package.
PiperOrigin-RevId: 216221311
Change-Id: I44805fcf21508831809692184a0eba4cee469633
Diffstat (limited to 'pkg/abi/linux/fs.go')
-rw-r--r-- | pkg/abi/linux/fs.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/abi/linux/fs.go b/pkg/abi/linux/fs.go index 00b239351..32a0812b4 100644 --- a/pkg/abi/linux/fs.go +++ b/pkg/abi/linux/fs.go @@ -28,6 +28,12 @@ const ( V9FS_MAGIC = 0x01021997 ) +// Filesystem path limits, from uapi/linux/limits.h. +const ( + NAME_MAX = 255 + PATH_MAX = 4096 +) + // Statfs is struct statfs, from uapi/asm-generic/statfs.h. type Statfs struct { // Type is one of the filesystem magic values, defined above. |