Skip to contentSkip to conversation

cciss 2.4: adds 2 ioctls for ia64 based systems

PATCH In review mikem 3 participants 3 messages Aug 15, 2005

Subsystems (2)
lore
Share & tools
lore

mikem

author
#0 lore raw

PATCH 3/4 cciss 2.4: adds 2 ioctls for ia64 based systems

Patch 3/4
This patch adds 2 ioctls required for IPF systems. Without this change parted may fail. This causes some vendor installs to fail. Please consider this for inclusion.

 cciss.c |    5 +++++
 1 files changed, 5 insertions(+)

--------------------------------------------------------------------------------

drivers/block/cciss.c +5 -0
diff -burNp lx2431-p002/drivers/block/cciss.c lx2431/drivers/block/cciss.c
@@ -748,7 +748,12 @@ static int cciss_ioctl(struct inode *ino
 	case BLKELVGET:
 	case BLKELVSET:
 	case BLKSSZGET:
+#ifdef CONFIG_IA64
+        case BLKGETLASTSECT:
+        case BLKSETLASTSECT:
+#endif
 		return blk_ioctl(inode->i_rdev, cmd, arg);
+
 	case CCISS_GETPCIINFO:
 	{
 		cciss_pci_info_struct pciinfo;
#1 lore raw

drivers/block/cciss.c static int cciss_ioctl(struct inode *ino · line 755

Quoted 5 lines · mikem
drivers/block/cciss.c +4 -0
+#ifdef CONFIG_IA64
+        case BLKGETLASTSECT:
+        case BLKSETLASTSECT:
+#endif
 		return blk_ioctl(inode->i_rdev, cmd, arg);

What makes these two ioctls IA64 specific? I think they're completely general in 2.4, so there's no need for the #ifdef.

James

#2 lore raw
Quoted 9 lines · James Bottomley

drivers/block/cciss.c static int cciss_ioctl(struct inode *ino · line 755

Quoted 5 lines · mikem
drivers/block/cciss.c +4 -0
+#ifdef CONFIG_IA64
+        case BLKGETLASTSECT:
+        case BLKSETLASTSECT:
+#endif
 		return blk_ioctl(inode->i_rdev, cmd, arg);

What makes these two ioctls IA64 specific? I think they're completely general in 2.4, so there's no need for the #ifdef.

They don't exist in 2.4 mainline. The ia64 patch and then many distributions introduced it because the EFI partitions spec contains some braindamage that requries accessing the last sector. In 2.6 the block device nodes can do that, so the ioctls aren't needed either.

In short this patch should not go into mainline 2.4, it doesn't support ia64 anyway and if it did it wouldn't compile because the ioctls aren't defined.