[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1170294633.7511.4.camel@butch.lan.tjworld.net>
Date: Thu, 01 Feb 2007 01:50:33 +0000
From: TJ <linux@...orld.net>
To: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
Cc: Neil Brown <neilb@...e.de>, linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] filesystem: Disk Errors at boot-time caused by probe
of partitions
From: TJ <linux@...orld.net>
Applies to: up-to and including 2.6.20-rc7
Update to previous patch.
Fixed logical error in if() statements for conditional printk(). Replaced bit-wise OR with AND.
Signed-off-by: TJ <linux@...orld.net>
--- fs/partitions/msdos.tj.c 2007-02-01 00:41:57.000000000 +0000
+++ fs/partitions/msdos.tj.1.c 2007-02-01 01:07:31.000000000 +0000
@@ -459,13 +459,13 @@ int check_sane_values(struct partition *
if (insane) { /* insanity found; report it */
ret = -1; /* error code */
printk("\n"); /* start error report on a fresh line */
- if (insane | 1)
+ if (insane & 1)
printk(" partition %d: start (sector %d) beyond end of disk (sector %d)\n",
slot, START_SECT(p), (unsigned int) bdev->bd_disk->capacity-1);
- if (insane | 2)
+ if (insane & 2)
printk(" partition %d: end (sector %d) beyond end of disk (sector %d)\n",
slot, START_SECT(p)+NR_SECTS(p)-1, (unsigned int) bdev->bd_disk->capacity-1);
- if (insane | 4)
+ if (insane & 4)
printk(" partition %d: insane extended contents\n", slot);
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists