super0: Fix spelling of 'version' in comment and fix formatting

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Jes Sorensen 2016-08-15 15:49:59 -04:00
parent 055b766b1c
commit a8cb6604b6
1 changed files with 6 additions and 8 deletions

View File

@ -693,16 +693,14 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
} }
/* /*
* For verion-0 superblock, the homehost is 'stored' in the * For version-0 superblock, the homehost is 'stored' in the uuid.
* uuid. 8 bytes for a hash of the host leaving 8 bytes * 8 bytes for a hash of the host leaving 8 bytes of random material.
* of random material. * We use the first 8 bytes (64bits) of the sha1 of the host name
* 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, static int init_super0(struct supertype *st, mdu_array_info_t *info,
unsigned long long size, char *ignored_name, char *homehost, unsigned long long size, char *ignored_name,
int *uuid, unsigned long long data_offset) char *homehost, int *uuid,
unsigned long long data_offset)
{ {
mdp_super_t *sb; mdp_super_t *sb;
int spares; int spares;