Update.
[glibc.git] / sysdeps / unix / sysv / linux / linux_fsinfo.h
blob9dfb034b7dda8cc50326548a48054b0d544c39e2
1 /* Constants from kernel header for various FSes.
2 Copyright (C) 1998 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #ifndef _LINUX_FSINFO_H
21 #define _LINUX_FSINFO_H 1
23 /* These definitions come from the kernel headers. But we cannot
24 include the headers here because of type clashes. If new
25 filesystem types will become available we have to add the
26 appropriate definitions here.*/
27 #define ADFS_SUPER_MAGIC 0xadf5
28 #define AFFS_SUPER_MAGIC 0xadff
29 #define CODA_SUPER_MAGIC 0x73757245
30 #define EXT2_SUPER_MAGIC 0xef53
31 #define HPFS_SUPER_MAGIC 0xf995e849
32 #define ISOFS_SUPER_MAGIC 0x9660
33 #define MINIX_SUPER_MAGIC 0x137f
34 #define MINIX_SUPER_MAGIC2 0x138F
35 #define MINIX2_SUPER_MAGIC 0x2468
36 #define MINIX2_SUPER_MAGIC2 0x2478
37 #define MSDOS_SUPER_MAGIC 0x4d44
38 #define NCP_SUPER_MAGIC 0x564c
39 #define NFS_SUPER_MAGIC 0x6969
40 #define PROC_SUPER_MAGIC 0x9fa0
41 #define SMB_SUPER_MAGIC 0x517b
42 #define XENIX_SUPER_MAGIC 0x012ff7b4
43 #define SYSV4_SUPER_MAGIC 0x012ff7b5
44 #define SYSV2_SUPER_MAGIC 0x012ff7b6
45 #define COH_SUPER_MAGIC 0x012ff7b7
46 #define UFS_MAGIC 0x00011954
47 #define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
49 /* Maximum link counts. */
50 #define EXT2_LINK_MAX 32000
51 #define MINIX_LINK_MAX 250
52 #define MINIX2_LINK_MAX 65530
53 #define XENIX_LINK_MAX 126 /* ?? */
54 #define SYSV_LINK_MAX 126 /* 127? 251? */
55 #define COH_LINK_MAX 10000
56 #define UFS_LINK_MAX EXT2_LINK_MAX
58 #endif /* linux_fsinfo.h */