Re: PROBLEM: kernel 2.4.20 option CONFIG_BLK_STATS breaks /proc/partitons so "mount" can't mount devices by UUID.

From: Andries Brouwer (aebr@win.tue.nl)
Date: Mon Dec 16 2002 - 19:55:39 EST


On Tue, Dec 17, 2002 at 12:24:50AM +0100, jiri.wichern@hccnet.nl wrote:

> Short description of the problem: You can't mount hard drive
> volumes by using their UUID number when also using extra
> statistics for your block devices by the CONFIG_BLK_STATS
> kernel option.

Yes, we know.
You use an old version of mount, and the mount will always fail.

Two solutions:
(i) Do not use CONFIG_BLK_STATS.
(ii) Upgrade mount to a recent version (mount is part of util-linux,
recent is for example 2.11y).

Note that solution (ii) gives you a situation where mount and fdisk
fail sporadically instead of always, maybe not precisely what one
had hoped. Thus, (i) is the preferred solution.

It was really bad that CONFIG_BLK_STATS went into 2.4.20,
but you need not use it.

Andries

Two months ago I sent the below Doc patch. It is still needed.

--- Documentation/Configure.help~ Mon Oct 14 01:12:13 2002
+++ Documentation/Configure.help Tue Oct 22 20:30:39 2002
@@ -561,6 +561,8 @@
  
   This is required for the full functionality of sar(8) and interesting
   if you want to do performance tuning, by tweaking the elevator, e.g.
+ On the other hand, it will cause random and mysterious failures for
+ fdisk, mount and other programs reading /proc/partitions.
  
   If unsure, say N.

(this is about CONFIG_BLK_STATS).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:15 EST