]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix formatting error in /proc/mdstat
authorNeilBrown <neilb@suse.de>
Mon, 10 Mar 2008 18:43:47 +0000 (11:43 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Mar 2008 01:01:19 +0000 (18:01 -0700)
commit3bd68f1223d24c99c99da44672abc4369d9e7e84
tree2a04d72705155fbdf2fe5181da414bc0c5261525
parent57b358d18a58801d3c1ab4c2c95bd10701ca282e
md: fix formatting error in /proc/mdstat

If an md array is "auto-read-only", then this appears in /proc/mdstat as

   /dev/md0: active(auto-read-only)

whereas if it is truely readonly, it appears as

   /dev/md0: active (read-only)

The difference being a space.

One program known to parse this file expects the space and gets badly
confused.  It will be fixed, but it would be best if what the kernel generates
is more consistent too.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c