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)
commitf4a00a2c06bc7802f52969cbdd19f4c680a7cd20
treea8ee7e8a210ed01f5c9be0e981f1188f7e06bd10
parent0afc2edfada50980bec999f94dcea26ebad3dda6
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