diff options
Diffstat (limited to 'fs/xfs/xfs_clnt.h')
-rw-r--r-- | fs/xfs/xfs_clnt.h | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/fs/xfs/xfs_clnt.h b/fs/xfs/xfs_clnt.h index b3215ffe0be8..328a528b926d 100644 --- a/fs/xfs/xfs_clnt.h +++ b/fs/xfs/xfs_clnt.h | |||
@@ -1,33 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
3 | * All Rights Reserved. | ||
3 | * | 4 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 5 | * This program is free software; you can redistribute it and/or |
5 | * under the terms of version 2 of the GNU General Public License as | 6 | * modify it under the terms of the GNU General Public License as |
6 | * published by the Free Software Foundation. | 7 | * published by the Free Software Foundation. |
7 | * | 8 | * |
8 | * This program is distributed in the hope that it would be useful, but | 9 | * This program is distributed in the hope that it would be useful, |
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | ||
11 | * | 13 | * |
12 | * Further, this software is distributed without any warranty that it is | 14 | * You should have received a copy of the GNU General Public License |
13 | * free of the rightful claim of any third person regarding infringement | 15 | * along with this program; if not, write the Free Software Foundation, |
14 | * or the like. Any license provided herein, whether implied or | 16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
15 | * otherwise, applies only to this software file. Patent licenses, if | ||
16 | * any, provided herein do not apply to combinations of this program with | ||
17 | * other software, or any other product whatsoever. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License along | ||
20 | * with this program; if not, write the Free Software Foundation, Inc., 59 | ||
21 | * Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
22 | * | ||
23 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, | ||
24 | * Mountain View, CA 94043, or: | ||
25 | * | ||
26 | * http://www.sgi.com | ||
27 | * | ||
28 | * For further information regarding this notice, see: | ||
29 | * | ||
30 | * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ | ||
31 | */ | 17 | */ |
32 | #ifndef __XFS_CLNT_H__ | 18 | #ifndef __XFS_CLNT_H__ |
33 | #define __XFS_CLNT_H__ | 19 | #define __XFS_CLNT_H__ |
@@ -55,6 +41,7 @@ | |||
55 | */ | 41 | */ |
56 | struct xfs_mount_args { | 42 | struct xfs_mount_args { |
57 | int flags; /* flags -> see XFSMNT_... macros below */ | 43 | int flags; /* flags -> see XFSMNT_... macros below */ |
44 | int flags2; /* flags -> see XFSMNT2_... macros below */ | ||
58 | int logbufs; /* Number of log buffers, -1 to default */ | 45 | int logbufs; /* Number of log buffers, -1 to default */ |
59 | int logbufsize; /* Size of log buffers, -1 to default */ | 46 | int logbufsize; /* Size of log buffers, -1 to default */ |
60 | char fsname[MAXNAMELEN+1]; /* data device name */ | 47 | char fsname[MAXNAMELEN+1]; /* data device name */ |
@@ -68,9 +55,9 @@ struct xfs_mount_args { | |||
68 | }; | 55 | }; |
69 | 56 | ||
70 | /* | 57 | /* |
71 | * XFS mount option flags | 58 | * XFS mount option flags -- args->flags1 |
72 | */ | 59 | */ |
73 | #define XFSMNT_CHKLOG 0x00000001 /* check log */ | 60 | #define XFSMNT_COMPAT_ATTR 0x00000001 /* do not use ATTR2 format */ |
74 | #define XFSMNT_WSYNC 0x00000002 /* safe mode nfs mount | 61 | #define XFSMNT_WSYNC 0x00000002 /* safe mode nfs mount |
75 | * compatible */ | 62 | * compatible */ |
76 | #define XFSMNT_INO64 0x00000004 /* move inode numbers up | 63 | #define XFSMNT_INO64 0x00000004 /* move inode numbers up |
@@ -91,7 +78,7 @@ struct xfs_mount_args { | |||
91 | #define XFSMNT_SHARED 0x00001000 /* shared XFS mount */ | 78 | #define XFSMNT_SHARED 0x00001000 /* shared XFS mount */ |
92 | #define XFSMNT_IOSIZE 0x00002000 /* optimize for I/O size */ | 79 | #define XFSMNT_IOSIZE 0x00002000 /* optimize for I/O size */ |
93 | #define XFSMNT_OSYNCISOSYNC 0x00004000 /* o_sync is REALLY o_sync */ | 80 | #define XFSMNT_OSYNCISOSYNC 0x00004000 /* o_sync is REALLY o_sync */ |
94 | /* (osyncisdsync is now default) */ | 81 | /* (osyncisdsync is default) */ |
95 | #define XFSMNT_32BITINODES 0x00200000 /* restrict inodes to 32 | 82 | #define XFSMNT_32BITINODES 0x00200000 /* restrict inodes to 32 |
96 | * bits of address space */ | 83 | * bits of address space */ |
97 | #define XFSMNT_GQUOTA 0x00400000 /* group quota accounting */ | 84 | #define XFSMNT_GQUOTA 0x00400000 /* group quota accounting */ |
@@ -99,12 +86,19 @@ struct xfs_mount_args { | |||
99 | * enforcement */ | 86 | * enforcement */ |
100 | #define XFSMNT_NOUUID 0x01000000 /* Ignore fs uuid */ | 87 | #define XFSMNT_NOUUID 0x01000000 /* Ignore fs uuid */ |
101 | #define XFSMNT_DMAPI 0x02000000 /* enable dmapi/xdsm */ | 88 | #define XFSMNT_DMAPI 0x02000000 /* enable dmapi/xdsm */ |
102 | #define XFSMNT_NOLOGFLUSH 0x04000000 /* Don't flush for log blocks */ | 89 | #define XFSMNT_BARRIER 0x04000000 /* use write barriers */ |
103 | #define XFSMNT_IDELETE 0x08000000 /* inode cluster delete */ | 90 | #define XFSMNT_IDELETE 0x08000000 /* inode cluster delete */ |
104 | #define XFSMNT_SWALLOC 0x10000000 /* turn on stripe width | 91 | #define XFSMNT_SWALLOC 0x10000000 /* turn on stripe width |
105 | * allocation */ | 92 | * allocation */ |
106 | #define XFSMNT_IHASHSIZE 0x20000000 /* inode hash table size */ | 93 | #define XFSMNT_IHASHSIZE 0x20000000 /* inode hash table size */ |
107 | #define XFSMNT_DIRSYNC 0x40000000 /* sync creat,link,unlink,rename | 94 | #define XFSMNT_DIRSYNC 0x40000000 /* sync creat,link,unlink,rename |
108 | * symlink,mkdir,rmdir,mknod */ | 95 | * symlink,mkdir,rmdir,mknod */ |
96 | #define XFSMNT_FLAGS2 0x80000000 /* more flags set in flags2 */ | ||
97 | |||
98 | /* | ||
99 | * XFS mount option flags -- args->flags2 | ||
100 | */ | ||
101 | #define XFSMNT2_COMPAT_IOSIZE 0x00000001 /* don't report large preferred | ||
102 | * I/O size in stat(2) */ | ||
109 | 103 | ||
110 | #endif /* __XFS_CLNT_H__ */ | 104 | #endif /* __XFS_CLNT_H__ */ |