mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 14:47:28 -04:00
unix: add mount_setattr support for linux
This brings in mount_setattr(2) support, added to Linux 5.12 kernel and documented at https://man7.org/linux/man-pages/man2/mount_setattr.2.html Change-Id: I5609980c18aef80f9429a8c8cec8c1e129f74ab7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/363444 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
0c823b97ae
commit
0a5406a544
@@ -877,6 +877,8 @@ const (
|
||||
AT_STATX_FORCE_SYNC = C.AT_STATX_FORCE_SYNC
|
||||
AT_STATX_DONT_SYNC = C.AT_STATX_DONT_SYNC
|
||||
|
||||
AT_RECURSIVE = C.AT_RECURSIVE
|
||||
|
||||
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||
|
||||
@@ -3865,3 +3867,7 @@ const (
|
||||
SHM_RDONLY = C.SHM_RDONLY
|
||||
SHM_RND = C.SHM_RND
|
||||
)
|
||||
|
||||
// mount_setattr
|
||||
|
||||
type MountAttr C.struct_mount_attr
|
||||
|
||||
Reference in New Issue
Block a user