github.com/stevegt/moby@v1.13.1/pkg/mount/flags_freebsd.go (about)

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