Skip to contentSkip to conversation

2.5.21 - ibm partition.

PATCH Martin Schwidefsky 1 participant 1 message Jun 10, 2002

lore
Share & tools
lore
#0 lore raw

Hi,
I am resending this patch from Pete Zaitchev/Al Viro to remind that there is still an open issue with the ibm partition code. It works for us and if there isn't a better solution in sight I'd suggest to include it into 2.5.x. A better solution would be to make ioctls work on half-open block devices but I understand that this is complicated and takes time to implement. Anybody with a veto ?

blues skies,
Martin.

fs/partitions/Makefile +1 -1
diff -urN linux-2.5.21/fs/partitions/Makefile linux-2.5.21-s390/fs/partitions/Makefile
@@ -2,7 +2,7 @@
 # Makefile for the linux kernel.
 #
 
-export-objs := check.o ibm.o msdos.o
+export-objs := check.o msdos.o
 
 obj-y := check.o
 
fs/partitions/check.c +5 -1
diff -urN linux-2.5.21/fs/partitions/check.c linux-2.5.21-s390/fs/partitions/check.c
@@ -83,13 +83,17 @@
 
 /*
  *	This is ucking fugly but its probably the best thing for 2.4.x
- *	Take it as a clear reminder than we should put the device name
+ *	Take it as a clear reminder that: 1) we should put the device name
  *	generation in the object kdev_t points to in 2.5.
+ *	and 2) ioctls better work on half-opened devices.
  */
  
 #ifdef CONFIG_ARCH_S390
 int (*genhd_dasd_name)(char*,int,int,struct gendisk*) = NULL;
+int (*genhd_dasd_ioctl)(struct inode *inp, struct file *filp,
+			unsigned int no, unsigned long data);
 EXPORT_SYMBOL(genhd_dasd_name);
+EXPORT_SYMBOL(genhd_dasd_ioctl);
 #endif
 
 /*
fs/partitions/ibm.c +158 -127

326 lines not on this page · raw message