Skip to contentSkip to conversation

pnfs/blocklayout: require 64-bit ѕector_t

PATCH In review Christoph Hellwig 2 participants 3 messages Aug 5, 2017 – Aug 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pnfs/blocklayout: require 64-bit ѕector_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.

Fixes 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
---
 fs/nfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/Kconfig +1 -0
index 69d02cf8cf37..5f93cfacb3d1 100644
@@ -121,6 +121,7 @@ config PNFS_FILE_LAYOUT
 config PNFS_BLOCK
 	tristate
 	depends on NFS_V4_1 && BLK_DEV_DM
+	depends on 64BIT || LBDAF
 	default NFS_V4
 
 config PNFS_FLEXFILE_LAYOUT
Signature · 1 line
2.11.0
#1 lore raw

Trond, Anna,

can you pick this up? Maybe even for 3.13 given that it should be pretty harmless for 98% of the configfs, and will prevent problems for the others.

Quoted 30 lines · Christoph Hellwig

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.

Fixes 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
---
 fs/nfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/Kconfig +1 -0
index 69d02cf8cf37..5f93cfacb3d1 100644
@@ -121,6 +121,7 @@ config PNFS_FILE_LAYOUT
 config PNFS_BLOCK
 	tristate
 	depends on NFS_V4_1 && BLK_DEV_DM
+	depends on 64BIT || LBDAF
 	default NFS_V4
 
 config PNFS_FLEXFILE_LAYOUT
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

---end quoted text---

#2 lore raw

Hi Christoph,

Quoted 5 lines · Christoph Hellwig

Trond, Anna,

can you pick this up? Maybe even for 3.13 given that it should be pretty harmless for 98% of the configfs, and will prevent problems for the others.

The patch looks okay to me, so I'll take it for the next rc.

Anna

Quoted 34 lines · Christoph Hellwig
Quoted 30 lines

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.

Fixes 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
---
 fs/nfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/Kconfig +1 -0
index 69d02cf8cf37..5f93cfacb3d1 100644
@@ -121,6 +121,7 @@ config PNFS_FILE_LAYOUT
 config PNFS_BLOCK
 	tristate
 	depends on NFS_V4_1 && BLK_DEV_DM
+	depends on 64BIT || LBDAF
 	default NFS_V4
 
 config PNFS_FLEXFILE_LAYOUT
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

---end quoted text---