patch-2.3.19 linux/fs/partitions/acorn.c

Next file: linux/fs/partitions/msdos.c
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/fs/partitions/acorn.c linux/fs/partitions/acorn.c
@@ -69,6 +69,9 @@
 	struct buffer_head *bh;
 	struct riscix_record *rr;
 	unsigned int riscix_minor;
+	
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
 
 	printk(" [RISCiX]");
 
@@ -113,6 +116,9 @@
 	struct linux_part *linuxp;
 	unsigned int linux_minor, mask = (1 << hd->minor_shift) - 1;
 
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
+		
 	printk(" [Linux]");
 
 	add_gd_partition(hd, linux_minor = minor++, first_sect, nr_sects);
@@ -151,6 +157,9 @@
 	char *name = "CUMANA/ADFS";
 	int first = 1;
 
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
+
 	/*
 	 * Try Cumana style partitions - sector 3 contains ADFS boot block with pointer
 	 * to next 'drive'.
@@ -236,6 +245,9 @@
 	struct buffer_head *bh;
 	struct disc_record *dr;
 
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
+
 	if (!(bh = bread(dev, 3, 1024)))
 		return -1;
 
@@ -287,6 +299,9 @@
 	unsigned int offset = block & 1 ? 512 : 0;
 	int result = 0;
 
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
+
 	bh = bread(dev, block >> 1, 1024);
 
 	if (bh != NULL) {
@@ -319,6 +334,9 @@
 	unsigned int i, mask = (1 << hd->minor_shift) - 1;
 	struct ics_part { unsigned long start; signed long size; } *p;
 
+	if(get_ptable_blocksize(dev)!=1024)
+		return 0;
+		
 	/*
 	 * Try ICS style partitions - sector 0 contains partition info.
 	 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)