Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   : DM RAID 'failed_devices' should be 64-bit (http://www.linux-archive.org/device-mapper-development/548485-dm-raid-failed_devices-should-64-bit.html)

Jonathan Brassow 07-05-2011 03:55 PM

: DM RAID 'failed_devices' should be 64-bit
 
I have two more patches to add to the original series of 7 patches
([PATCH 0 OF 7] DM RAID updates). These two should be added to the
end of the series.

brassow

Use 64-bit variable for 'failed_devices'.

'failed_devices' is a 64-bit field in the superblock. The corresponding
function local variable must also be 64-bit.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>

Index: linux-2.6/drivers/md/dm-raid.c
================================================== =================
--- linux-2.6.orig/drivers/md/dm-raid.c
+++ linux-2.6/drivers/md/dm-raid.c
@@ -712,7 +712,7 @@ static int super_init_validation(mddev_t
{
struct raid_set *rs = container_of(mddev, struct raid_set, md);
uint64_t ev1;
- uint32_t failed_devices;
+ uint64_t failed_devices;
struct dm_raid_superblock *sb;
uint32_t new_devs = 0;
uint32_t rebuilds = 0;


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 10:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.