diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-11-27 22:23:32 -0500 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-11-30 19:07:20 -0500 |
commit | 6c31b93a14a453c8756ffd228e24910ffdf30c5d (patch) | |
tree | 2404243fb61a1bc09b81f18399b19950325e18b7 /fs/xfs/linux-2.6/xfs_linux.h | |
parent | f999a5bf3fa6b3d11334c3ba1e9dcfed5ff9f8a6 (diff) |
[XFS] allow inode64 mount option on 32 bit systems
Now that we've stopped using the Linux inode cache when can trivally
support the inode64 mount option on 32bit architectures. As far as the
kernel and most userspace is concerned this works perfectly, but
applications still using really old stat and readdir interfaces will get
an EOVERFLOW error when hitting an inode number not fitting into 32
bits (that problem of course also exists when using these applications
on a 64bit kernel).
Note that because inode64 is simply a mount option we can currently
mount a filesystem having > 32 bit inode numbers and cause a variety of
problems, all this is solved but this patch which enables XFS_BIG_INUMS,
even when inode64 is not used.
(First sent on October 18th)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_linux.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_linux.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h index 77d6ddcaf547..cfe16a36a1da 100644 --- a/fs/xfs/linux-2.6/xfs_linux.h +++ b/fs/xfs/linux-2.6/xfs_linux.h | |||
@@ -21,18 +21,12 @@ | |||
21 | #include <linux/types.h> | 21 | #include <linux/types.h> |
22 | 22 | ||
23 | /* | 23 | /* |
24 | * Some types are conditional depending on the target system. | ||
25 | * XFS_BIG_BLKNOS needs block layer disk addresses to be 64 bits. | 24 | * XFS_BIG_BLKNOS needs block layer disk addresses to be 64 bits. |
26 | * XFS_BIG_INUMS needs the VFS inode number to be 64 bits, as well | 25 | * XFS_BIG_INUMS requires XFS_BIG_BLKNOS to be set. |
27 | * as requiring XFS_BIG_BLKNOS to be set. | ||
28 | */ | 26 | */ |
29 | #if defined(CONFIG_LBD) || (BITS_PER_LONG == 64) | 27 | #if defined(CONFIG_LBD) || (BITS_PER_LONG == 64) |
30 | # define XFS_BIG_BLKNOS 1 | 28 | # define XFS_BIG_BLKNOS 1 |
31 | # if BITS_PER_LONG == 64 | 29 | # define XFS_BIG_INUMS 1 |
32 | # define XFS_BIG_INUMS 1 | ||
33 | # else | ||
34 | # define XFS_BIG_INUMS 0 | ||
35 | # endif | ||
36 | #else | 30 | #else |
37 | # define XFS_BIG_BLKNOS 0 | 31 | # define XFS_BIG_BLKNOS 0 |
38 | # define XFS_BIG_INUMS 0 | 32 | # define XFS_BIG_INUMS 0 |