Debian Codegraph @

mount/flags_bsd.go

raw symbols SCIP
1 //go:build freebsd || openbsd
2
3 package mount
4
5 import "golang.org/x/sys/unix"
6
7 const (
8 // RDONLY will mount the filesystem as read-only.
9 RDONLY = unix.MNT_RDONLY
10
11 // NOSUID will not allow set-user-identifier or set-group-identifier bits to
12 // take effect.
13 NOSUID = unix.MNT_NOSUID
14
15 // NOEXEC will not allow execution of any binaries on the mounted file system.
16 NOEXEC = unix.MNT_NOEXEC
17
18 // SYNCHRONOUS will allow any I/O to the file system to be done synchronously.
19 SYNCHRONOUS = unix.MNT_SYNCHRONOUS
20
21 // NOATIME will not update the file access time when reading from a file.
22 NOATIME = unix.MNT_NOATIME
23 )
24
25 // These flags are unsupported.
26 const (
27 BIND = 0
28 DIRSYNC = 0
29 MANDLOCK = 0
30 NODEV = 0
31 NODIRATIME = 0
32 UNBINDABLE = 0
33 RUNBINDABLE = 0
34 PRIVATE = 0
35 RPRIVATE = 0
36 SHARED = 0
37 RSHARED = 0
38 SLAVE = 0
39 RSLAVE = 0
40 RBIND = 0
41 RELATIME = 0
42 REMOUNT = 0
43 STRICTATIME = 0
44 mntDetach = 0
45 )