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>
This commit is contained in:
Dan Williams 2008-11-08 16:03:07 -07:00
parent 4d1313e901
commit 92bd8f8d3f
1 changed files with 1 additions and 1 deletions

View File

@ -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);