flags_freebsd.go 967 B

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