summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-11-08 16:03:07 -0700
committerDan Williams <dan.j.williams@intel.com>2008-11-08 16:03:07 -0700
commit92bd8f8d3f2c9c7733f92a062a0752d9b9997673 (patch)
tree6438474f70c22535c29b459a8be4b9618294116c
parent4d1313e9017e2608bfd2d01f854c19e23f7daf62 (diff)
downloadmdadm-92bd8f8d3f2c9c7733f92a062a0752d9b9997673.tar.gz
imsm: fix uuid_from_super given 'signature' is not constant
The version portion of the signature changes depending on the contents of the container. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--super-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 6ef2e51..433fa46 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -751,7 +751,7 @@ static void uuid_from_super_imsm(struct supertype *st, int uuid[4])
struct imsm_dev *dev = NULL;
sha1_init_ctx(&ctx);
- sha1_process_bytes(super->anchor->sig, MAX_SIGNATURE_LENGTH, &ctx);
+ sha1_process_bytes(super->anchor->sig, MPB_SIG_LEN, &ctx);
sha1_process_bytes(&super->anchor->family_num, sizeof(__u32), &ctx);
if (super->current_vol >= 0)
dev = get_imsm_dev(super, super->current_vol);