summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-08-15 21:49:59 +0200
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-08-15 21:49:59 +0200
commita8cb6604b606deaaa66979e84a6f1c6d2c044b3b (patch)
treee9ee961ee965692ba7f5163a04ec0e28853b98a5 /super0.c
parentsuper0: Use random_uuid() in init_super0() (diff)
downloadmdadm-a8cb6604b606deaaa66979e84a6f1c6d2c044b3b.tar.xz
mdadm-a8cb6604b606deaaa66979e84a6f1c6d2c044b3b.zip
super0: Fix spelling of 'version' in comment and fix formatting
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/super0.c b/super0.c
index 333860c4..65fbe64d 100644
--- a/super0.c
+++ b/super0.c
@@ -693,16 +693,14 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
}
/*
- * For verion-0 superblock, the homehost is 'stored' in the
- * uuid. 8 bytes for a hash of the host leaving 8 bytes
- * of random material.
- * We use the first 8 bytes (64bits) of the sha1 of the
- * host name
+ * For version-0 superblock, the homehost is 'stored' in the uuid.
+ * 8 bytes for a hash of the host leaving 8 bytes of random material.
+ * We use the first 8 bytes (64bits) of the sha1 of the host name
*/
-
static int init_super0(struct supertype *st, mdu_array_info_t *info,
- unsigned long long size, char *ignored_name, char *homehost,
- int *uuid, unsigned long long data_offset)
+ unsigned long long size, char *ignored_name,
+ char *homehost, int *uuid,
+ unsigned long long data_offset)
{
mdp_super_t *sb;
int spares;