PATCH: AFFS breakage

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 20 Feb 1999 02:02:44 +0000 (GMT)


Duhh, overzealous fixing for the 2048 byte stuff ;)

--- drivers/block/genhd.c~ Mon Feb 1 22:06:27 1999
+++ drivers/block/genhd.c Sat Feb 20 01:06:46 1999
@@ -879,7 +879,7 @@
res = 0;

for (blk = 0; blk < RDB_ALLOCATION_LIMIT; blk++) {
- if(!(bh = bread(dev,blk,get_ptable_blocksize(dev)))) {
+ if(!(bh = bread(dev,blk,512))) {
printk("Dev %s: unable to read RDB block %d\n",
kdevname(dev),blk);
goto rdb_done;
@@ -896,7 +896,7 @@
blk = htonl(rdb->rdb_PartitionList);
brelse(bh);
for (part = 1; blk > 0 && part <= 16; part++) {
- if (!(bh = bread(dev,blk, get_ptable_blocksize(dev)))) {
+ if (!(bh = bread(dev,blk, 512))) {
printk("Dev %s: unable to read partition block %d\n",
kdevname(dev),blk);
goto rdb_done;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/