1998-10-23 13:44:50 +00:00
|
|
|
|
/* Constants from kernel header for various FSes.
|
2005-12-20 07:21:59 +00:00
|
|
|
|
Copyright (C) 1998,1999,2000,2001,2002,2003,2005 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
|
|
|
|
|
License along with the GNU C Library; if not, write to the Free
|
|
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
|
02111-1307 USA. */
|
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
|
|
|
|
|
appropriate definitions here.*/
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `adfs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define ADFS_SUPER_MAGIC 0xadf5
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `affs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define AFFS_SUPER_MAGIC 0xadff
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
2003-09-17 00:49:19 +00:00
|
|
|
|
/* Constants that identify the `autofs' filesystem. */
|
|
|
|
|
#define AUTOFS_SUPER_MAGIC 0x187
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `bfs' filesystem. */
|
1999-10-29 20:23:50 +00:00
|
|
|
|
#define BFS_MAGIC 0x1BADFACE
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `coda' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define CODA_SUPER_MAGIC 0x73757245
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `coherent' filesystem. */
|
|
|
|
|
#define COH_SUPER_MAGIC 0x012ff7b7
|
|
|
|
|
|
2003-03-14 06:28:45 +00:00
|
|
|
|
/* Constant that identifies the `ramfs' filesystem. */
|
|
|
|
|
#define CRAMFS_MAGIC 0x28cd3d45
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
/* Constant that identifies the `efs' filesystem. */
|
1999-10-29 17:38:14 +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
|
|
|
|
|
|
|
|
|
/* Constant that identifies the `ext2' and `ext3' filesystems. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define EXT2_SUPER_MAGIC 0xef53
|
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
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
/* Constants that identify the `minix' filesystem. */
|
|
|
|
|
#define MINIX_SUPER_MAGIC 0x137f
|
|
|
|
|
#define MINIX_SUPER_MAGIC2 0x138F
|
|
|
|
|
|
|
|
|
|
/* Constants that identify the `msdos' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define MSDOS_SUPER_MAGIC 0x4d44
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `ncp' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define NCP_SUPER_MAGIC 0x564c
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `nfs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define NFS_SUPER_MAGIC 0x6969
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
2002-10-18 19:03:55 +00:00
|
|
|
|
/* Constants that identify the `ntfs' filesystem. */
|
|
|
|
|
#define NTFS_SUPER_MAGIC 0x5346544e
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `proc' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define PROC_SUPER_MAGIC 0x9fa0
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
2003-09-17 00:49:19 +00:00
|
|
|
|
/* Constant that identifies the `usbdevfs' filesystem. */
|
|
|
|
|
#define USBDEVFS_SUPER_MAGIC 0x9fa2
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `qnx4' filesystem. */
|
1999-10-29 17:38:14 +00:00
|
|
|
|
#define QNX4_SUPER_MAGIC 0x002f
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
|
|
|
|
/* Constants that identify the `reiser' filesystem. */
|
1999-10-29 17:38:14 +00:00
|
|
|
|
#define REISERFS_SUPER_MAGIC 0x52654973
|
1999-11-18 16:42:11 +00:00
|
|
|
|
|
2002-10-18 19:03:55 +00:00
|
|
|
|
/* Constant that identifies the `romfs' filesystem. */
|
|
|
|
|
#define ROMFS_SUPER_MAGIC 0x7275
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `smb' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define SMB_SUPER_MAGIC 0x517b
|
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
|
|
|
|
|
|
2002-10-18 19:03:55 +00:00
|
|
|
|
/* Constants that identify the `udf' filesystem. */
|
|
|
|
|
#define UDF_SUPER_MAGIC 0x15013346
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `ufs' filesystem. */
|
1998-10-23 13:44:50 +00:00
|
|
|
|
#define UFS_MAGIC 0x00011954
|
|
|
|
|
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
|
|
|
|
|
|
1999-11-18 16:42:11 +00:00
|
|
|
|
/* Constants that identify the `xenix' filesystem. */
|
|
|
|
|
#define XENIX_SUPER_MAGIC 0x012ff7b4
|
|
|
|
|
|
2000-04-15 19:21:10 +00:00
|
|
|
|
/* Constant that identifies the `shm' filesystem. */
|
2001-03-03 17:01:02 +00:00
|
|
|
|
#define SHMFS_SUPER_MAGIC 0x01021994
|
2000-04-15 19:21:10 +00:00
|
|
|
|
|
2002-10-16 00:33:18 +00:00
|
|
|
|
/* Constants that identify the `xfs' filesystem. */
|
|
|
|
|
#define XFS_SUPER_MAGIC 0x58465342
|
|
|
|
|
|
2003-09-04 14:42:25 +00:00
|
|
|
|
/* Constants that identify the `vxfs' filesystem. */
|
|
|
|
|
#define VXFS_SUPER_MAGIC 0xa501fcf5
|
|
|
|
|
|
2005-12-20 07:21:59 +00:00
|
|
|
|
/* Constants that identify the `sysfs<66> filesystem. */
|
|
|
|
|
#define SYSFS_MAGIC 0x62656572
|
|
|
|
|
|
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
|
|
|
|
|
#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 */
|