]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: Perform first metadata update for container operation
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 6 Jan 2011 05:24:07 +0000 (16:24 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 6 Jan 2011 05:24:07 +0000 (16:24 +1100)
commitd677e0b8ec1b643360375a69ff7bf26cd63c3f94
tree35492bb1f0b0586c7aabce24667ab1cb8d71b7bd
parent690aae1ae5a65b56b4e9749c603fb314d94df1d2
imsm: FIX: Perform first metadata update for container operation

Meta data was not updated due to the following problems:
1.disk index < 0 was treated as invalid, but this is spare device
2. disk index greater than currently used disks is correct also
3. newmap pointer has to be refreshed for second map copy operation
4. size calculation has to be guarded for shrinking operation

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c