linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove geometry support from ps3 storage driver
@ 2007-05-21 12:53 Olaf Hering
  2007-05-21 12:54 ` [PATCH] set module owner in ps3 modules Olaf Hering
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Olaf Hering @ 2007-05-21 12:53 UTC (permalink / raw)
  To: Geoff Levand, linuxppc-dev


The old ps3_storage driver did not support DOS geometry, so there is no
point to start adding code for it.

Signed-off-by: Olaf Hering <olaf@aepfle.de>


Index: linux-2.6.22-rc2/drivers/block/ps3disk.c
===================================================================
--- linux-2.6.22-rc2.orig/drivers/block/ps3disk.c
+++ linux-2.6.22-rc2/drivers/block/ps3disk.c
@@ -43,10 +43,6 @@
 
 #define KERNEL_SECTOR_SIZE	512
 
-// FIXME SCSI uses H=64, S=32. Can we still repartition disks partitioned using
-//       the old driver?
-#define PS3DISK_HEADS		255
-#define PS3DISK_SECTORS		63
 
 #define PS3DISK_NAME		"ps3d%c"
 
@@ -70,21 +66,11 @@ static int ps3disk_open(struct inode *in
 	return 0;
 }
 
-static int ps3disk_getgeo(struct block_device *bdev, struct hd_geometry *geo)
-{
-	geo->heads = PS3DISK_HEADS;
-	geo->sectors = PS3DISK_SECTORS;
-	geo->cylinders = min(65535UL,
-			     get_capacity(bdev->bd_disk) /
-			     (PS3DISK_HEADS * PS3DISK_SECTORS));
-	return 0;
-}
 
 
 static struct block_device_operations ps3disk_fops = {
 	.owner		= THIS_MODULE,
 	.open		= ps3disk_open,
-	.getgeo		= ps3disk_getgeo,
 };
 
 static void ps3disk_scatter_gather(struct ps3_storage_device *dev,

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-30 10:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21 12:53 [PATCH] remove geometry support from ps3 storage driver Olaf Hering
2007-05-21 12:54 ` [PATCH] set module owner in ps3 modules Olaf Hering
2007-05-21 15:52   ` Geoff Levand
2007-05-21 14:36 ` [PATCH] remove geometry support from ps3 storage driver Geert Uytterhoeven
2007-05-21 14:39 ` Christoph Hellwig
2007-05-21 17:14   ` Olaf Hering
2007-05-29  9:15   ` Geert Uytterhoeven
2007-05-30 10:12     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).