(root)/
util-linux-2.39/
include/
statfs_magic.h
       1  /*
       2   * No copyright is claimed.  This code is in the public domain; do with
       3   * it what you wish.
       4   */
       5  #ifndef UTIL_LINUX_STATFS_MAGIC_H
       6  #define UTIL_LINUX_STATFS_MAGIC_H
       7  
       8  #ifdef HAVE_SYS_STATFS_H
       9  # include <sys/statfs.h>
      10  #endif
      11  
      12  /*
      13   * If possible then don't depend on internal libc __SWORD_TYPE type.
      14   */
      15  #ifdef __GNUC__
      16  #define F_TYPE_EQUAL(a, b) (a == (__typeof__(a)) b)
      17  #else
      18  #define F_TYPE_EQUAL(a, b) (a == (__SWORD_TYPE) b)
      19  #endif
      20  
      21  /*
      22   *  Unfortunately, Linux kernel header file <linux/magic.h> is incomplete
      23   *  mess and kernel returns by statfs f_type many numbers that are nowhere
      24   *  specified (in API).
      25   *
      26   *  This is collection of the magic numbers.
      27   */
      28  #define STATFS_ADFS_MAGIC	0xadf5
      29  #define STATFS_AFFS_MAGIC	0xadff
      30  #define STATFS_AFS_MAGIC	0x5346414F
      31  #define STATFS_AUTOFS_MAGIC	0x0187
      32  #define STATFS_BDEVFS_MAGIC	0x62646576
      33  #define STATFS_BEFS_MAGIC	0x42465331
      34  #define STATFS_BFS_MAGIC	0x1BADFACE
      35  #define STATFS_BINFMTFS_MAGIC	0x42494e4d
      36  #define STATFS_BTRFS_MAGIC	0x9123683E
      37  #define STATFS_CEPH_MAGIC	0x00c36400
      38  #define STATFS_CGROUP_MAGIC	0x27e0eb
      39  #define STATFS_CGROUP2_MAGIC	0x63677270
      40  #define STATFS_CIFS_MAGIC	0xff534d42
      41  #define STATFS_CODA_MAGIC	0x73757245
      42  #define STATFS_CONFIGFS_MAGIC	0x62656570
      43  #define STATFS_CRAMFS_MAGIC	0x28cd3d45
      44  #define STATFS_DEBUGFS_MAGIC	0x64626720
      45  #define STATFS_DEVPTS_MAGIC	0x1cd1
      46  #define STATFS_ECRYPTFS_MAGIC	0xf15f
      47  #define STATFS_EFIVARFS_MAGIC	0xde5e81e4
      48  #define STATFS_EFS_MAGIC	0x414A53
      49  #define STATFS_EXOFS_MAGIC	0x5DF5
      50  #define STATFS_EXT2_MAGIC	0xEF53
      51  #define STATFS_EXT3_MAGIC	0xEF53
      52  #define STATFS_EXT4_MAGIC	0xEF53
      53  #define STATFS_F2FS_MAGIC	0xF2F52010
      54  #define STATFS_FUSE_MAGIC	0x65735546
      55  #define STATFS_FUTEXFS_MAGIC	0xBAD1DEA
      56  #define STATFS_GFS2_MAGIC	0x01161970
      57  #define STATFS_HFSPLUS_MAGIC	0x482b
      58  #define STATFS_HOSTFS_MAGIC	0x00c0ffee
      59  #define STATFS_HPFS_MAGIC	0xf995e849
      60  #define STATFS_HPPFS_MAGIC	0xb00000ee
      61  #define STATFS_HUGETLBFS_MAGIC	0x958458f6
      62  #define STATFS_ISOFS_MAGIC	0x9660
      63  #define STATFS_JFFS2_MAGIC	0x72b6
      64  #define STATFS_JFS_MAGIC	0x3153464a
      65  #define STATFS_LOGFS_MAGIC	0xc97e8168
      66  #define STATFS_MINIX2_MAGIC	0x2468
      67  #define STATFS_MINIX2_MAGIC2	0x2478
      68  #define STATFS_MINIX3_MAGIC	0x4d5a
      69  #define STATFS_MINIX_MAGIC	0x137F
      70  #define STATFS_MINIX_MAGIC2	0x138F
      71  #define STATFS_MQUEUE_MAGIC	0x19800202
      72  #define STATFS_MSDOS_MAGIC	0x4d44
      73  #define STATFS_NCP_MAGIC	0x564c
      74  #define STATFS_NFS_MAGIC	0x6969
      75  #define STATFS_NILFS_MAGIC	0x3434
      76  #define STATFS_NTFS_MAGIC	0x5346544e
      77  #define STATFS_OCFS2_MAGIC	0x7461636f
      78  #define STATFS_OMFS_MAGIC	0xC2993D87
      79  #define STATFS_OPENPROMFS_MAGIC	0x9fa1
      80  #define STATFS_PIPEFS_MAGIC	0x50495045
      81  #define STATFS_PROC_MAGIC	0x9fa0
      82  #define STATFS_PSTOREFS_MAGIC	0x6165676C
      83  #define STATFS_QNX4_MAGIC	0x002f
      84  #define STATFS_QNX6_MAGIC	0x68191122
      85  #define STATFS_RAMFS_MAGIC	0x858458f6
      86  #define STATFS_REISERFS_MAGIC	0x52654973
      87  #define STATFS_ROMFS_MAGIC	0x7275
      88  #define STATFS_SECURITYFS_MAGIC	0x73636673
      89  #define STATFS_SELINUXFS_MAGIC	0xf97cff8c
      90  #define STATFS_SMACKFS_MAGIC	0x43415d53
      91  #define STATFS_SMB_MAGIC	0x517B
      92  #define STATFS_SOCKFS_MAGIC	0x534F434B
      93  #define STATFS_SQUASHFS_MAGIC	0x73717368
      94  #define STATFS_SYSFS_MAGIC	0x62656572
      95  #define STATFS_TMPFS_MAGIC	0x01021994
      96  #define STATFS_UBIFS_MAGIC	0x24051905
      97  #define STATFS_UDF_MAGIC	0x15013346
      98  #define STATFS_UFS2_MAGIC	0x19540119
      99  #define STATFS_UFS_MAGIC	0x00011954
     100  #define STATFS_V9FS_MAGIC	0x01021997
     101  #define STATFS_VXFS_MAGIC	0xa501FCF5
     102  #define STATFS_XENFS_MAGIC	0xabba1974
     103  #define STATFS_XFS_MAGIC	0x58465342
     104  
     105  #endif /* UTIL_LINUX_STATFS_MAGIC_H */
     106