]> git.baikalelectronics.ru Git - kernel.git/commit
Block: Fix whole_disk attribute bug
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 7 Feb 2008 07:33:39 +0000 (23:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 7 Feb 2008 19:31:46 +0000 (11:31 -0800)
commitc667736affb90af370fdf7a0cff6d85f0df683b4
treea8ee7e8a210ed01f5c9be0e981f1188f7e06bd10
parent94b342b9701ca2624cd080acdb0bbf3479d04fc4
Block: Fix whole_disk attribute bug

The "whole_disk" attribute was not properly converted in the block
device conversion earlier, and if the file is read, bad things can
happen.  This patch fixes this, making the attribute an empty one,
preserving the original functionality.

Many thanks to David Miller for finding this, and pointing me in the
proper place within the block code to look.

Acked-by: David S. Miller <davem@davemloft.net>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/partitions/check.c