diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-21 18:23:26 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-21 18:23:26 +0100 |
commit | b7528a20cca58c973771d94d7d2b8ef74bcf582d (patch) | |
tree | c49e951944dfe3aa7a8659453f7874ac041f98cc /super-ddf.c | |
parent | Add scaffolding for handling md/dev-XXX/recovery_start (diff) | |
download | 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c index f5eb816f..8c3f4beb 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; |