diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2012-10-20 15:40:02 +0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-22 10:30:13 +1100 |
commit | 3713633a30349773a83bd8257cdd64b86ce32dbd (patch) | |
tree | ea691069d450fbaa90867284e08ae290d7ea2907 | |
parent | 9ff1427837d2691b28f9f02721c32c1af97faa64 (diff) | |
download | mdadm-3713633a30349773a83bd8257cdd64b86ce32dbd.tar.gz |
mdadm: super0: do not override uuid with homehost
When --uuid is specified in the command line, even for v0.90
superblock we override last portion of uuid with data from
--homehost, which is wrong (and disagrees with the manpage).
Only use homehost in super0 if no uuid is specified.
Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super0.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -657,7 +657,7 @@ static int init_super0(struct supertype *st, mdu_array_info_t *info, if (rfd >= 0) close(rfd); } - if (homehost) { + if (homehost && !uuid) { char buf[20]; char *hash = sha1_buffer(homehost, strlen(homehost), |