diff options
author | NeilBrown <neilb@suse.de> | 2013-06-19 16:55:35 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-19 16:55:35 +1000 |
commit | e09233d0482c73c727d34c8b6fa4a3536382341f (patch) | |
tree | bbfbeb2b263a72e905c16fe6e4ca5a68e6625f6d /Grow.c | |
parent | 97882bc806a8531b724f5acaccbe9ebaef05b5b6 (diff) |
Grow: a data_offset should not be tested against 0.
It should always be tested against INVALID_SECTORS!!!
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r-- | Grow.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2792,7 +2792,7 @@ static int reshape_array(char *container, int fd, char *devname, Manage_subdevs(devname, fd, devlist, verbose, 0,NULL, 0); - if (reshape.backup_blocks == 0 && data_offset) + if (reshape.backup_blocks == 0 && data_offset != INVALID_SECTORS) reshape.backup_blocks = reshape.before.data_disks * info->array.chunk_size/512; if (reshape.backup_blocks == 0) { /* No restriping needed, but we might need to impose |