1998-10-23 13:44:50 +00:00
|
|
|
/* Constants from kernel header for various FSes.
|
2021-01-02 19:32:25 +00:00
|
|
|
Copyright (C) 1998-2021 Free Software Foundation, Inc.
|
1998-10-23 13:44:50 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:58:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1998-10-23 13:44:50 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:58:11 +00:00
|
|
|
Lesser General Public License for more details.
|
1998-10-23 13:44:50 +00:00
|
|
|
|
2001-07-06 04:58:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-02-09 23:18:22 +00:00
|
|
|
License along with the GNU C Library; if not, see
|
Prefer https to http for gnu.org and fsf.org URLs
Also, change sources.redhat.com to sourceware.org.
This patch was automatically generated by running the following shell
script, which uses GNU sed, and which avoids modifying files imported
from upstream:
sed -ri '
s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g
s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g
' \
$(find $(git ls-files) -prune -type f \
! -name '*.po' \
! -name 'ChangeLog*' \
! -path COPYING ! -path COPYING.LIB \
! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \
! -path manual/texinfo.tex ! -path scripts/config.guess \
! -path scripts/config.sub ! -path scripts/install-sh \
! -path scripts/mkinstalldirs ! -path scripts/move-if-change \
! -path INSTALL ! -path locale/programs/charmap-kw.h \
! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \
! '(' -name configure \
-execdir test -f configure.ac -o -f configure.in ';' ')' \
! '(' -name preconfigure \
-execdir test -f preconfigure.ac ';' ')' \
-print)
and then by running 'make dist-prepare' to regenerate files built
from the altered files, and then executing the following to cleanup:
chmod a+x sysdeps/unix/sysv/linux/riscv/configure
# Omit irrelevant whitespace and comment-only changes,
# perhaps from a slightly-different Autoconf version.
git checkout -f \
sysdeps/csky/configure \
sysdeps/hppa/configure \
sysdeps/riscv/configure \
sysdeps/unix/sysv/linux/csky/configure
# Omit changes that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines
git checkout -f \
sysdeps/powerpc/powerpc64/ppc-mcount.S \
sysdeps/unix/sysv/linux/s390/s390-64/syscall.S
# Omit change that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline
git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
2019-09-07 05:40:42 +00:00
|
|
|
<https://www.gnu.org/licenses/>. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
|
|
|
#ifndef _LINUX_FSINFO_H
|
|
|
|
#define _LINUX_FSINFO_H 1
|
|
|
|
|
|
|
|
/* These definitions come from the kernel headers. But we cannot
|
|
|
|
include the headers here because of type clashes. If new
|
|
|
|
filesystem types will become available we have to add the
|
2010-10-01 14:49:47 +00:00
|
|
|
appropriate definitions here. */
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `adfs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define ADFS_SUPER_MAGIC 0xadf5
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `affs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define AFFS_SUPER_MAGIC 0xadff
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `afs' filesystem. */
|
|
|
|
#define AFS_SUPER_MAGIC 0x5346414F
|
|
|
|
|
|
|
|
/* Constant that identifies the `anon_inodefs' filesystem. */
|
|
|
|
#define ANON_INODE_FS_MAGIC 0x09041934
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `autofs' filesystem. */
|
2003-09-17 00:49:19 +00:00
|
|
|
#define AUTOFS_SUPER_MAGIC 0x187
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `bdev' filesystem. */
|
|
|
|
#define BDEVFS_MAGIC 0x62646576
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `bfs' filesystem. */
|
2010-10-01 23:05:26 +00:00
|
|
|
#define BFS_MAGIC 0x1badface
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `binfmt_misc' filesystem. */
|
|
|
|
#define BINFMTFS_MAGIC 0x42494e4d
|
|
|
|
|
2010-10-01 14:49:47 +00:00
|
|
|
/* Constant that identifies the `btrfs' filesystem. */
|
2010-10-01 23:05:26 +00:00
|
|
|
#define BTRFS_SUPER_MAGIC 0x9123683e
|
2010-10-01 14:49:47 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `btrfs_test_fs' filesystem. */
|
|
|
|
#define BTRFS_TEST_MAGIC 0x73727279
|
|
|
|
|
2010-10-01 14:49:47 +00:00
|
|
|
/* Constant that identifies the `cgroup' filesystem. */
|
2010-10-01 23:05:26 +00:00
|
|
|
#define CGROUP_SUPER_MAGIC 0x27e0eb
|
2010-10-01 14:49:47 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `coda' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define CODA_SUPER_MAGIC 0x73757245
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `coherent' filesystem. */
|
1999-11-18 16:42:11 +00:00
|
|
|
#define COH_SUPER_MAGIC 0x012ff7b7
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `cramfs' filesystem. */
|
2003-03-14 06:28:45 +00:00
|
|
|
#define CRAMFS_MAGIC 0x28cd3d45
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `cramfs' filesystem w/opposite endianness. */
|
|
|
|
#define CRAMFS_MAGIC_WEND 0x453dcd28
|
|
|
|
|
|
|
|
/* Constant that identifies the `debugfs' filesystem. */
|
|
|
|
#define DEBUGFS_MAGIC 0x64626720
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constant that identifies the `devfs' filesystem. */
|
1999-11-17 20:37:54 +00:00
|
|
|
#define DEVFS_SUPER_MAGIC 0x1373
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
/* Constant that identifies the `devpts' filesystem. */
|
|
|
|
#define DEVPTS_SUPER_MAGIC 0x1cd1
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constants that identifies the `ecryptfs' filesystem. */
|
|
|
|
#define ECRYPTFS_SUPER_MAGIC 0xf15f
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constants that identifies the `efs' filesystem. */
|
2010-10-01 23:05:26 +00:00
|
|
|
#define EFS_SUPER_MAGIC 0x414a53
|
2003-03-14 06:28:45 +00:00
|
|
|
#define EFS_MAGIC 0x072959
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2013-03-06 15:35:19 +00:00
|
|
|
/* Constants that identifies the `evivar' filesystem. */
|
|
|
|
#define EFIVARFS_MAGIC 0xde5e81e4
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `ext2' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define EXT2_SUPER_MAGIC 0xef53
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `ext3' filesystem. */
|
|
|
|
#define EXT3_SUPER_MAGIC 0xef53
|
|
|
|
|
|
|
|
/* Constant that identifies the `ext3' filesystem. */
|
|
|
|
#define EXT4_SUPER_MAGIC 0xef53
|
|
|
|
|
2013-03-06 15:35:19 +00:00
|
|
|
/* Constant that identifies the `f2fs' filesystem. */
|
|
|
|
#define F2FS_SUPER_MAGIC 0xf2f52010
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `futexfs' filesystem. */
|
|
|
|
#define FUTEXFS_SUPER_MAGIC 0xBAD1DEA
|
|
|
|
|
|
|
|
/* Constant that identifies the `hostfs' filesystem. */
|
|
|
|
#define HOSTFS_SUPER_MAGIC 0x00c0ffee
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constant that identifies the `hpfs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define HPFS_SUPER_MAGIC 0xf995e849
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `hugetlbfs' filesystem. */
|
|
|
|
#define HUGETLBFS_MAGIC 0x958458f6
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constant that identifies the `iso9660' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define ISOFS_SUPER_MAGIC 0x9660
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2002-10-18 19:03:55 +00:00
|
|
|
/* Constant that identifies the `jffs' filesystem. */
|
|
|
|
#define JFFS_SUPER_MAGIC 0x07c0
|
|
|
|
|
|
|
|
/* Constant that identifies the `jffs2' filesystem. */
|
|
|
|
#define JFFS2_SUPER_MAGIC 0x72b6
|
|
|
|
|
|
|
|
/* Constant that identifies the `jfs' filesystem. */
|
|
|
|
#define JFS_SUPER_MAGIC 0x3153464a
|
|
|
|
|
2010-10-01 23:05:26 +00:00
|
|
|
/* Constant that identifies the `logfs' filesystem. */
|
2010-03-06 23:40:50 +00:00
|
|
|
#define LOGFS_MAGIC_U32 0xc97e8168u
|
|
|
|
|
2011-07-07 04:20:32 +00:00
|
|
|
/* Constant that identifies the `lustre' filesystem. */
|
|
|
|
#define LUSTRE_SUPER_MAGIC 0x0BD00BD0
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constants that identify the `minix2' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define MINIX2_SUPER_MAGIC 0x2468
|
|
|
|
#define MINIX2_SUPER_MAGIC2 0x2478
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constants that identify the `minix3' filesystem. */
|
|
|
|
#define MINIX3_SUPER_MAGIC 0x4d5a
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constants that identify the `minix' filesystem. */
|
|
|
|
#define MINIX_SUPER_MAGIC 0x137f
|
|
|
|
#define MINIX_SUPER_MAGIC2 0x138F
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `msdos' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define MSDOS_SUPER_MAGIC 0x4d44
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `mtd_inodefs' filesystem. */
|
|
|
|
#define MTD_INODE_FS_MAGIC 0x11307854
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `ncp' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define NCP_SUPER_MAGIC 0x564c
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `nilfs' filesystem. */
|
|
|
|
#define NILFS_SUPER_MAGIC 0x3434
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `nfs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define NFS_SUPER_MAGIC 0x6969
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `ntfs' filesystem. */
|
2002-10-18 19:03:55 +00:00
|
|
|
#define NTFS_SUPER_MAGIC 0x5346544e
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `openpromfs' filesystem. */
|
|
|
|
#define OPENPROM_SUPER_MAGIC 0x9fa1
|
|
|
|
|
|
|
|
/* Constant that identifies the `pipefs' filesystem. */
|
|
|
|
#define PIPEFS_MAGIC 0x50495045
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `proc' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define PROC_SUPER_MAGIC 0x9fa0
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `pstorefs' filesystem. */
|
|
|
|
#define PSTOREFS_MAGIC 0x6165676C
|
2003-09-17 00:49:19 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `qnx4' filesystem. */
|
1999-10-29 17:38:14 +00:00
|
|
|
#define QNX4_SUPER_MAGIC 0x002f
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `qnx6' filesystem. */
|
|
|
|
#define QNX6_SUPER_MAGIC 0x68191122
|
|
|
|
|
|
|
|
/* Constant that identifies the `ramfs' filesystem. */
|
|
|
|
#define RAMFS_MAGIC 0x858458f6
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `reiser' filesystem. */
|
1999-10-29 17:38:14 +00:00
|
|
|
#define REISERFS_SUPER_MAGIC 0x52654973
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
#define REISERFS_SUPER_MAGIC_STRING "ReIsErFs"
|
|
|
|
#define REISER2FS_SUPER_MAGIC_STRING "ReIsEr2Fs"
|
|
|
|
#define REISER2FS_JR_SUPER_MAGIC_STRING "ReIsEr3Fs"
|
|
|
|
|
2002-10-18 19:03:55 +00:00
|
|
|
/* Constant that identifies the `romfs' filesystem. */
|
|
|
|
#define ROMFS_SUPER_MAGIC 0x7275
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `securityfs' filesystem. */
|
|
|
|
#define SECURITYFS_MAGIC 0x73636673
|
|
|
|
|
|
|
|
/* Constant that identifies the `selinuxfs' filesystem. */
|
|
|
|
#define SELINUX_MAGIC 0xf97cff8c
|
|
|
|
|
|
|
|
/* Constant that identifies the `smackfs' filesystem. */
|
|
|
|
#define SMACK_MAGIC 0x43415d53 /* "SMAC" */
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `shm' filesystem. */
|
|
|
|
#define SHMFS_SUPER_MAGIC 0x01021994
|
|
|
|
|
|
|
|
/* Constant that identifies the `smb' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define SMB_SUPER_MAGIC 0x517b
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `sockfs' filesystem. */
|
|
|
|
#define SOCKFS_MAGIC 0x534F434B
|
|
|
|
|
|
|
|
/* Constant that identifies the `squashfs' filesystem. */
|
|
|
|
#define SQUASHFS_MAGIC 0x73717368
|
|
|
|
|
|
|
|
/* Constant that identifies the end of stacks allocated by the kernel. */
|
|
|
|
#define STACK_END_MAGIC 0x57AC6E9D
|
|
|
|
|
2010-10-01 23:05:26 +00:00
|
|
|
/* Constant that identifies the `sysfs' filesystem. */
|
2010-03-06 23:40:50 +00:00
|
|
|
#define SYSFS_MAGIC 0x62656572
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
/* Constants that identify the `sysV' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define SYSV2_SUPER_MAGIC 0x012ff7b6
|
1999-11-18 16:42:11 +00:00
|
|
|
#define SYSV4_SUPER_MAGIC 0x012ff7b5
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `tmpfs' filesystem. */
|
|
|
|
#define TMPFS_MAGIC 0x01021994
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `udf' filesystem. */
|
2002-10-18 19:03:55 +00:00
|
|
|
#define UDF_SUPER_MAGIC 0x15013346
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identify the `ufs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
#define UFS_MAGIC 0x00011954
|
|
|
|
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
|
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `usbdevfs' filesystem. */
|
|
|
|
#define USBDEVFS_SUPER_MAGIC 0x9fa2
|
|
|
|
#define USBDEVICE_SUPER_MAGIC 0x9fa2
|
|
|
|
|
|
|
|
/* Constant that identifies the `9p' filesystem. */
|
|
|
|
#define V9FS_MAGIC 0x01021997
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `vxfs' filesystem. */
|
|
|
|
#define VXFS_SUPER_MAGIC 0xa501fcf5
|
1999-11-18 16:42:11 +00:00
|
|
|
|
2014-01-23 06:06:38 +00:00
|
|
|
/* Constant that identifies the `xenfs' filesystem. */
|
|
|
|
#define XENFS_SUPER_MAGIC 0xabba1974
|
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `xenix' filesystem. */
|
|
|
|
#define XENIX_SUPER_MAGIC 0x012ff7b4
|
2000-04-15 19:21:10 +00:00
|
|
|
|
2010-03-06 23:40:50 +00:00
|
|
|
/* Constant that identifies the `xfs' filesystem. */
|
2002-10-16 00:33:18 +00:00
|
|
|
#define XFS_SUPER_MAGIC 0x58465342
|
|
|
|
|
1998-10-23 13:44:50 +00:00
|
|
|
/* Maximum link counts. */
|
1999-11-18 16:42:11 +00:00
|
|
|
#define COH_LINK_MAX 10000
|
1998-10-23 13:44:50 +00:00
|
|
|
#define EXT2_LINK_MAX 32000
|
2011-07-07 04:20:32 +00:00
|
|
|
#define EXT4_LINK_MAX 65000
|
2013-03-06 15:35:19 +00:00
|
|
|
#define F2FS_LINK_MAX 32000
|
2011-07-07 04:20:32 +00:00
|
|
|
#define LUSTRE_LINK_MAX EXT4_LINK_MAX
|
1998-10-23 13:44:50 +00:00
|
|
|
#define MINIX2_LINK_MAX 65530
|
1999-11-18 16:42:11 +00:00
|
|
|
#define MINIX_LINK_MAX 250
|
1999-10-29 17:38:14 +00:00
|
|
|
#define REISERFS_LINK_MAX 64535
|
1998-10-23 13:44:50 +00:00
|
|
|
#define SYSV_LINK_MAX 126 /* 127? 251? */
|
|
|
|
#define UFS_LINK_MAX EXT2_LINK_MAX
|
1999-11-18 16:42:11 +00:00
|
|
|
#define XENIX_LINK_MAX 126 /* ?? */
|
2002-10-16 00:33:18 +00:00
|
|
|
#define XFS_LINK_MAX 2147483647
|
1998-10-23 13:44:50 +00:00
|
|
|
|
2002-10-16 22:09:42 +00:00
|
|
|
/* The Linux kernel header mentioned this as a kind of generic value. */
|
|
|
|
#define LINUX_LINK_MAX 127
|
|
|
|
|
|
|
|
|
1998-10-23 13:44:50 +00:00
|
|
|
#endif /* linux_fsinfo.h */
|