cciss 2.4: adds 2 ioctls for ia64 based systems
Subsystems (2)
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
@@ -748,7 +748,12 @@ static int cciss_ioctl(struct inode *inocase 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;
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
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.