Skip to content

Commit 8a9d6e9

Browse files
Christoph Hellwigamschuma-ntap
authored andcommitted
pnfs/blocklayout: require 64-bit sector_t
The blocklayout code does not compile cleanly for a 32-bit sector_t, and also has no reliable checks for devices sizes, which makes it unsafe to use with a kernel that doesn't support large block devices. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Arnd Bergmann <arnd@arndb.de> Fixes: 5c83746 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing") Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent c0ca0e5 commit 8a9d6e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ config PNFS_FILE_LAYOUT
121121
config PNFS_BLOCK
122122
tristate
123123
depends on NFS_V4_1 && BLK_DEV_DM
124+
depends on 64BIT || LBDAF
124125
default NFS_V4
125126

126127
config PNFS_FLEXFILE_LAYOUT

0 commit comments

Comments
 (0)