summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-12-21 10:23:26 -0700
committerDan Williams <dan.j.williams@intel.com>2009-12-21 10:23:26 -0700
commitb7528a20cca58c973771d94d7d2b8ef74bcf582d (patch)
treec49e951944dfe3aa7a8659453f7874ac041f98cc /super-ddf.c
parente1516be1db121e6f462b41a739106e33461a733a (diff)
downloadmdadm-b7528a20cca58c973771d94d7d2b8ef74bcf582d.tar.gz
mdadm-b7528a20cca58c973771d94d7d2b8ef74bcf582d.tar.xz
mdadm-b7528a20cca58c973771d94d7d2b8ef74bcf582d.zip
Introduce MaxSector
Replace occurrences of ~0ULL to make it clear we are talking about maximal resync/recovery position. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c
index f5eb816..8c3f4be 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1433,7 +1433,7 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info)
(ddf->virt->entries[info->container_member].init_state
& DDF_initstate_mask)
== DDF_init_full)
- info->resync_start = ~0ULL;
+ info->resync_start = MaxSector;
uuid_from_super_ddf(st, info->uuid);
@@ -2921,7 +2921,7 @@ static struct mdinfo *container_content_ddf(struct supertype *st)
this->resync_start = 0;
} else {
this->array.state = 1;
- this->resync_start = ~0ULL;
+ this->resync_start = MaxSector;
}
memcpy(this->name, ddf->virt->entries[i].name, 16);
this->name[16]=0;