Blame sysdeps/unix/sysv/linux/linux_fsinfo.h

Packit Service 82fcde
/* Constants from kernel header for various FSes.
Packit Service 82fcde
   Copyright (C) 1998-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _LINUX_FSINFO_H
Packit Service 82fcde
#define _LINUX_FSINFO_H	1
Packit Service 82fcde
Packit Service 82fcde
/* These definitions come from the kernel headers.  But we cannot
Packit Service 82fcde
   include the headers here because of type clashes.  If new
Packit Service 82fcde
   filesystem types will become available we have to add the
Packit Service 82fcde
   appropriate definitions here.  */
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `adfs' filesystem.  */
Packit Service 82fcde
#define ADFS_SUPER_MAGIC	0xadf5
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `affs' filesystem.  */
Packit Service 82fcde
#define AFFS_SUPER_MAGIC	0xadff
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `afs' filesystem.  */
Packit Service 82fcde
#define AFS_SUPER_MAGIC		0x5346414F
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `anon_inodefs' filesystem.  */
Packit Service 82fcde
#define ANON_INODE_FS_MAGIC	0x09041934
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `autofs' filesystem.  */
Packit Service 82fcde
#define AUTOFS_SUPER_MAGIC	0x187
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `bdev' filesystem.  */
Packit Service 82fcde
#define BDEVFS_MAGIC		0x62646576
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `bfs' filesystem.  */
Packit Service 82fcde
#define BFS_MAGIC		0x1badface
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `binfmt_misc' filesystem.  */
Packit Service 82fcde
#define BINFMTFS_MAGIC		0x42494e4d
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `btrfs' filesystem.  */
Packit Service 82fcde
#define BTRFS_SUPER_MAGIC	0x9123683e
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `btrfs_test_fs' filesystem.  */
Packit Service 82fcde
#define BTRFS_TEST_MAGIC	0x73727279
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `cgroup' filesystem.  */
Packit Service 82fcde
#define CGROUP_SUPER_MAGIC	0x27e0eb
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `coda' filesystem.  */
Packit Service 82fcde
#define CODA_SUPER_MAGIC	0x73757245
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `coherent' filesystem.  */
Packit Service 82fcde
#define COH_SUPER_MAGIC		0x012ff7b7
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `cramfs' filesystem.  */
Packit Service 82fcde
#define CRAMFS_MAGIC		0x28cd3d45
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `cramfs' filesystem w/opposite endianness.  */
Packit Service 82fcde
#define CRAMFS_MAGIC_WEND	0x453dcd28
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `debugfs' filesystem.  */
Packit Service 82fcde
#define DEBUGFS_MAGIC		0x64626720
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `devfs' filesystem.  */
Packit Service 82fcde
#define DEVFS_SUPER_MAGIC	0x1373
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `devpts' filesystem.  */
Packit Service 82fcde
#define DEVPTS_SUPER_MAGIC	0x1cd1
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identifies the `ecryptfs' filesystem.  */
Packit Service 82fcde
#define ECRYPTFS_SUPER_MAGIC	0xf15f
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identifies the `efs' filesystem.  */
Packit Service 82fcde
#define EFS_SUPER_MAGIC		0x414a53
Packit Service 82fcde
#define EFS_MAGIC		0x072959
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identifies the `evivar' filesystem.  */
Packit Service 82fcde
#define EFIVARFS_MAGIC		0xde5e81e4
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ext2' filesystem.  */
Packit Service 82fcde
#define EXT2_SUPER_MAGIC	0xef53
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ext3' filesystem.  */
Packit Service 82fcde
#define EXT3_SUPER_MAGIC	0xef53
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ext3' filesystem.  */
Packit Service 82fcde
#define EXT4_SUPER_MAGIC	0xef53
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `f2fs' filesystem.  */
Packit Service 82fcde
#define F2FS_SUPER_MAGIC	0xf2f52010
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `futexfs' filesystem.  */
Packit Service 82fcde
#define FUTEXFS_SUPER_MAGIC	0xBAD1DEA
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `hostfs' filesystem.  */
Packit Service 82fcde
#define HOSTFS_SUPER_MAGIC	0x00c0ffee
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `hpfs' filesystem.  */
Packit Service 82fcde
#define HPFS_SUPER_MAGIC	0xf995e849
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `hugetlbfs' filesystem.  */
Packit Service 82fcde
#define HUGETLBFS_MAGIC 	0x958458f6
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `iso9660' filesystem.  */
Packit Service 82fcde
#define ISOFS_SUPER_MAGIC	0x9660
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `jffs' filesystem.  */
Packit Service 82fcde
#define JFFS_SUPER_MAGIC	0x07c0
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `jffs2' filesystem.  */
Packit Service 82fcde
#define JFFS2_SUPER_MAGIC	0x72b6
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `jfs' filesystem.  */
Packit Service 82fcde
#define JFS_SUPER_MAGIC		0x3153464a
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `logfs' filesystem.  */
Packit Service 82fcde
#define LOGFS_MAGIC_U32		0xc97e8168u
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `lustre' filesystem.  */
Packit Service 82fcde
#define LUSTRE_SUPER_MAGIC	0x0BD00BD0
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identify the `minix2' filesystem.  */
Packit Service 82fcde
#define MINIX2_SUPER_MAGIC	0x2468
Packit Service 82fcde
#define MINIX2_SUPER_MAGIC2	0x2478
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identify the `minix3' filesystem.  */
Packit Service 82fcde
#define MINIX3_SUPER_MAGIC	0x4d5a
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identify the `minix' filesystem.  */
Packit Service 82fcde
#define MINIX_SUPER_MAGIC	0x137f
Packit Service 82fcde
#define MINIX_SUPER_MAGIC2	0x138F
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `msdos' filesystem.  */
Packit Service 82fcde
#define MSDOS_SUPER_MAGIC	0x4d44
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `mtd_inodefs' filesystem.  */
Packit Service 82fcde
#define MTD_INODE_FS_MAGIC	0x11307854
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ncp' filesystem.  */
Packit Service 82fcde
#define NCP_SUPER_MAGIC		0x564c
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `nilfs' filesystem.  */
Packit Service 82fcde
#define NILFS_SUPER_MAGIC	0x3434
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `nfs' filesystem.  */
Packit Service 82fcde
#define NFS_SUPER_MAGIC		0x6969
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ntfs' filesystem.  */
Packit Service 82fcde
#define NTFS_SUPER_MAGIC	0x5346544e
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `openpromfs' filesystem.  */
Packit Service 82fcde
#define OPENPROM_SUPER_MAGIC	0x9fa1
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `pipefs' filesystem.  */
Packit Service 82fcde
#define PIPEFS_MAGIC		0x50495045
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `proc' filesystem.  */
Packit Service 82fcde
#define PROC_SUPER_MAGIC	0x9fa0
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `pstorefs' filesystem.  */
Packit Service 82fcde
#define PSTOREFS_MAGIC		0x6165676C
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `qnx4' filesystem.  */
Packit Service 82fcde
#define QNX4_SUPER_MAGIC	0x002f
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `qnx6' filesystem.  */
Packit Service 82fcde
#define QNX6_SUPER_MAGIC	0x68191122
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `ramfs' filesystem.  */
Packit Service 82fcde
#define RAMFS_MAGIC		0x858458f6
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `reiser' filesystem.  */
Packit Service 82fcde
#define REISERFS_SUPER_MAGIC	0x52654973
Packit Service 82fcde
Packit Service 82fcde
#define REISERFS_SUPER_MAGIC_STRING	"ReIsErFs"
Packit Service 82fcde
#define REISER2FS_SUPER_MAGIC_STRING	"ReIsEr2Fs"
Packit Service 82fcde
#define REISER2FS_JR_SUPER_MAGIC_STRING	"ReIsEr3Fs"
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `romfs' filesystem.  */
Packit Service 82fcde
#define ROMFS_SUPER_MAGIC	0x7275
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `securityfs' filesystem.  */
Packit Service 82fcde
#define SECURITYFS_MAGIC	0x73636673
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `selinuxfs' filesystem.  */
Packit Service 82fcde
#define SELINUX_MAGIC		0xf97cff8c
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `smackfs' filesystem.  */
Packit Service 82fcde
#define SMACK_MAGIC		0x43415d53	/* "SMAC" */
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `shm' filesystem.  */
Packit Service 82fcde
#define SHMFS_SUPER_MAGIC	0x01021994
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `smb' filesystem.  */
Packit Service 82fcde
#define SMB_SUPER_MAGIC		0x517b
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `sockfs' filesystem.  */
Packit Service 82fcde
#define SOCKFS_MAGIC		0x534F434B
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `squashfs' filesystem.  */
Packit Service 82fcde
#define SQUASHFS_MAGIC		0x73717368
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the end of stacks allocated by the kernel.  */
Packit Service 82fcde
#define STACK_END_MAGIC		0x57AC6E9D
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `sysfs' filesystem.  */
Packit Service 82fcde
#define SYSFS_MAGIC		0x62656572
Packit Service 82fcde
Packit Service 82fcde
/* Constants that identify the `sysV' filesystem.  */
Packit Service 82fcde
#define SYSV2_SUPER_MAGIC	0x012ff7b6
Packit Service 82fcde
#define SYSV4_SUPER_MAGIC	0x012ff7b5
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `tmpfs' filesystem.  */
Packit Service 82fcde
#define TMPFS_MAGIC		0x01021994
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `udf' filesystem.  */
Packit Service 82fcde
#define UDF_SUPER_MAGIC		0x15013346
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identify the `ufs' filesystem.  */
Packit Service 82fcde
#define UFS_MAGIC		0x00011954
Packit Service 82fcde
#define UFS_CIGAM		0x54190100 /* byteswapped MAGIC */
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `usbdevfs' filesystem.  */
Packit Service 82fcde
#define USBDEVFS_SUPER_MAGIC	0x9fa2
Packit Service 82fcde
#define USBDEVICE_SUPER_MAGIC	0x9fa2
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `9p' filesystem.  */
Packit Service 82fcde
#define V9FS_MAGIC		0x01021997
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `vxfs' filesystem.  */
Packit Service 82fcde
#define VXFS_SUPER_MAGIC	0xa501fcf5
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `xenfs' filesystem.  */
Packit Service 82fcde
#define XENFS_SUPER_MAGIC	0xabba1974
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `xenix' filesystem.  */
Packit Service 82fcde
#define XENIX_SUPER_MAGIC	0x012ff7b4
Packit Service 82fcde
Packit Service 82fcde
/* Constant that identifies the `xfs' filesystem.  */
Packit Service 82fcde
#define XFS_SUPER_MAGIC		0x58465342
Packit Service 82fcde
Packit Service 82fcde
/* Maximum link counts.  */
Packit Service 82fcde
#define COH_LINK_MAX		10000
Packit Service 82fcde
#define EXT2_LINK_MAX		32000
Packit Service 82fcde
#define EXT4_LINK_MAX		65000
Packit Service 82fcde
#define F2FS_LINK_MAX		32000
Packit Service 82fcde
#define LUSTRE_LINK_MAX		EXT4_LINK_MAX
Packit Service 82fcde
#define MINIX2_LINK_MAX		65530
Packit Service 82fcde
#define MINIX_LINK_MAX		250
Packit Service 82fcde
#define REISERFS_LINK_MAX	64535
Packit Service 82fcde
#define SYSV_LINK_MAX		126     /* 127? 251? */
Packit Service 82fcde
#define UFS_LINK_MAX		EXT2_LINK_MAX
Packit Service 82fcde
#define XENIX_LINK_MAX		126     /* ?? */
Packit Service 82fcde
#define XFS_LINK_MAX		2147483647
Packit Service 82fcde
Packit Service 82fcde
/* The Linux kernel header mentioned this as a kind of generic value.  */
Packit Service 82fcde
#define LINUX_LINK_MAX	127
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#endif	/* linux_fsinfo.h */