2014-03-20 11:52:12 -04:00
|
|
|
// +build freebsd,cgo
|
|
|
|
|
|
|
|
package mount
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <sys/mount.h>
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
const (
|
2015-03-28 09:29:33 -04:00
|
|
|
// RDONLY will mount the filesystem as read-only.
|
|
|
|
RDONLY = C.MNT_RDONLY
|
|
|
|
|
|
|
|
// NOSUID will not allow set-user-identifier or set-group-identifier bits to
|
|
|
|
// take effect.
|
|
|
|
NOSUID = C.MNT_NOSUID
|
|
|
|
|
|
|
|
// NOEXEC will not allow execution of any binaries on the mounted file system.
|
|
|
|
NOEXEC = C.MNT_NOEXEC
|
|
|
|
|
|
|
|
// SYNCHRONOUS will allow any I/O to the file system to be done synchronously.
|
2014-03-20 11:52:12 -04:00
|
|
|
SYNCHRONOUS = C.MNT_SYNCHRONOUS
|
|
|
|
|
2015-03-28 09:29:33 -04:00
|
|
|
// NOATIME will not update the file access time when reading from a file.
|
|
|
|
NOATIME = C.MNT_NOATIME
|
|
|
|
)
|
|
|
|
|
|
|
|
// These flags are unsupported.
|
|
|
|
const (
|
2014-03-20 11:52:12 -04:00
|
|
|
BIND = 0
|
|
|
|
DIRSYNC = 0
|
|
|
|
MANDLOCK = 0
|
|
|
|
NODEV = 0
|
|
|
|
NODIRATIME = 0
|
2014-10-31 10:18:41 -04:00
|
|
|
UNBINDABLE = 0
|
|
|
|
RUNBINDABLE = 0
|
2014-03-20 11:52:12 -04:00
|
|
|
PRIVATE = 0
|
2014-10-31 10:18:41 -04:00
|
|
|
RPRIVATE = 0
|
|
|
|
SHARED = 0
|
|
|
|
RSHARED = 0
|
|
|
|
SLAVE = 0
|
|
|
|
RSLAVE = 0
|
2014-03-20 11:52:12 -04:00
|
|
|
RBIND = 0
|
|
|
|
RELATIVE = 0
|
|
|
|
RELATIME = 0
|
|
|
|
REMOUNT = 0
|
|
|
|
STRICTATIME = 0
|
|
|
|
)
|