Module: Sys::Filesystem::Constants

Included in:
Sys::Filesystem
Defined in:
lib/sys/unix/sys/filesystem/constants/bsd.rb,
lib/sys/unix/sys/filesystem/constants/linux.rb,
lib/sys/unix/sys/filesystem/constants/darwin.rb,
lib/sys/unix/sys/filesystem/constants/freebsd.rb,
lib/sys/unix/sys/filesystem/constants/generic.rb,
lib/sys/windows/sys/filesystem/constants/windows.rb

Constant Summary collapse

MNT_RDONLY =

read only filesystem

0x00000001
MNT_SYNCHRONOUS =

file system written synchronously

0x0000000000000002
MNT_NOEXEC =

can’t exec from filesystem

0x0000000000000004
MNT_NOSUID =

don’t honor setuid bits on fs

0x00000002
MNT_UNION =

union with underlying filesystem

0x0000000000000020
MNT_ASYNC =

file system written asynchronously

0x0000000000000040
MNT_EXPORTED =

filesystem is exported

0x0000000000000100
MNT_LOCAL =

filesystem is stored locally

0x0000000000001000
MNT_QUOTA =

quotas are enabled on filesystem

0x0000000000002000
MNT_ROOTFS =

identifies the root filesystem

0x0000000000004000
MNT_NOATIME =

disable update of file access time

0x0000000010000000
MNT_VISFLAGMASK =
MNT_RDONLY | MNT_NOSUID
MNT_FORCE =
1
MOUNT_OPTION_NAMES =
{
  MNT_RDONLY => 'read-only',
  MNT_NOSUID => 'nosuid'
}.freeze
MS_RDONLY =
1
MS_NOSUID =
2
MS_NODEV =
4
MS_NOEXEC =
8
MS_SYNCHRONOUS =
16
MS_REMOUNT =
32
MS_MANDLOCK =
64
MS_DIRSYNC =
128
MS_NOATIME =
1024
MS_NODIRATIME =
2048
MS_BIND =
4096
MS_MOVE =
8192
MS_REC =
16_384
MS_SILENT =
32_768
MS_POSIXACL =
1 << 16
MS_UNBINDABLE =
1 << 17
MS_PRIVATE =
1 << 18
MS_SLAVE =
1 << 19
MS_SHARED =
1 << 20
MS_RELATIME =
1 << 21
MS_KERNMOUNT =
1 << 22
MS_I_VERSION =
1 << 23
MS_STRICTATIME =
1 << 24
MS_ACTIVE =
1 << 30
MS_NOUSER =
1 << 31
MNT_NODEV =

don’t interpret special files

0x00000010
MNT_DETACH =
2
MNT_EXPIRE =
4
UMOUNT_NOFOLLOW =
8
MNT_CPROTECT =

file system supports content protection

0x00000080
MNT_QUARANTINE =

file system is quarantined

0x00000400
MNT_DOVOLFS =

FS supports volfs (deprecated)

0x00008000
MNT_DONTBROWSE =

FS is not appropriate path to user data

0x00100000
MNT_IGNORE_OWNERSHIP =

VFS will ignore ownership info on FS objects

0x00200000
MNT_AUTOMOUNTED =

filesystem was mounted by automounter

0x0000000200000000
MNT_JOURNALED =

filesystem is journaled

0x00800000
MNT_NOUSERXATTR =

Don’t allow user extended attributes

0x01000000
MNT_DEFWRITE =

filesystem should defer writes

0x02000000
MNT_MULTILABEL =

MAC support for objects

0x0000000004000000
MNT_NOCLUSTERR =

disable cluster read

0x0000000040000000
MNT_NOCLUSTERW =

disable cluster write

0x0000000080000000
MNT_NFS4ACLS =

enable NFS version 4 ACLs

0x0000000000000010
MNT_EXRDONLY =

exported read only

0x0000000000000080
MNT_DEFEXPORTED =

exported to the world

0x0000000000000200
MNT_EXPORTANON =

anon uid mapping for all

0x0000000000000400
MNT_EXKERB =

exported with Kerberos

0x0000000000000800
MNT_USER =

mounted by a user

0x0000000000008000
MNT_SUIDDIR =

special SUID dir handling

0x0000000000100000
MNT_SOFTDEP =

using soft updates

0x0000000000200000
MNT_NOSYMFOLLOW =

do not follow symlinks

0x0000000000400000
MNT_IGNORE =

do not show entry in df

0x0000000000800000
MNT_GJOURNAL =

GEOM journal support enabled

0x0000000002000000
MNT_ACLS =

ACL support enabled

0x0000000008000000
MNT_EXPUBLIC =

public export (WebNFS)

0x0000000020000000
MNT_SUJ =

using journaled soft updates

0x0000000100000000
MNT_VERIFIED =

filesystem is verified

0x0000000400000000
MNT_UNTRUSTED =

filesystem metadata is untrusted

0x0000000800000000
MNT_NAMEDATTR =

named attributes enabled

0x0000020000000000
MNT_UPDATE =
0x0000000000010000
MNT_DELEXPORT =
0x0000000000020000
MNT_RELOAD =
0x0000000000040000
MNT_SNAPSHOT =
0x0000000001000000
MNT_NONBUSY =
0x0000000004000000
MNT_BYFSID =
0x0000000008000000
MNT_NOCOVER =
0x0000001000000000
MNT_EMPTYDIR =
0x0000002000000000
MNT_RECURSE =
0x0000100000000000
MNT_DEFERRED =
0x0000200000000000
MAXPATH =
260
CASE_SENSITIVE_SEARCH =
0x00000001
CASE_PRESERVED_NAMES =
0x00000002
UNICODE_ON_DISK =
0x00000004
PERSISTENT_ACLS =
0x00000008
FILE_COMPRESSION =
0x00000010
VOLUME_QUOTAS =
0x00000020
SUPPORTS_SPARSE_FILES =
0x00000040
SUPPORTS_REPARSE_POINTS =
0x00000080
SUPPORTS_REMOTE_STORAGE =
0x00000100
VOLUME_IS_COMPRESSED =
0x00008000
SUPPORTS_OBJECT_IDS =
0x00010000
SUPPORTS_ENCRYPTION =
0x00020000
NAMED_STREAMS =
0x00040000
READ_ONLY_VOLUME =
0x00080000