diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-21 23:39:19 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-21 23:39:19 +0000 |
commit | 94a1a90d0d01ca5fce782e7d27fe9cae9423cf5a (patch) | |
tree | 8a8dedb729100dabadfe7b472d56ae5da3f16b11 /sys/dev/softraid.c | |
parent | f87c1ce3f3c538ce06a5851d85f86d0ad18ceef8 (diff) |
Remove big endian in metadata; prompted by deraadt.
Align metadata to 64 bit; from deraadt.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 62781bc637a..e8c17390e01 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.27 2007/04/21 23:22:42 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.28 2007/04/21 23:39:18 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -1793,10 +1793,6 @@ sr_save_metadata(struct sr_discipline *sd) /* initial metadata */ sm->ssd_magic = SR_MAGIC; sm->ssd_version = SR_META_VERSION; - if (_BYTE_ORDER == _LITTLE_ENDIAN) - sm->ssd_big_endian = 0; - else - sm->ssd_big_endian = 1; sm->ssd_size = sizeof(struct sr_metadata); sm->ssd_ondisk = 1; sr_get_uuid(&sm->ssd_uuid); @@ -1830,7 +1826,6 @@ sr_save_metadata(struct sr_discipline *sd) /* metadata */ DNPRINTF(SR_D_META, "\tmagic 0x%llx\n", sm->ssd_magic); DNPRINTF(SR_D_META, "\tversion %d\n", sm->ssd_version); - DNPRINTF(SR_D_META, "\tbig endian %d\n", sm->ssd_big_endian); DNPRINTF(SR_D_META, "\tchecksum 0x%x\n", sm->ssd_checksum); DNPRINTF(SR_D_META, "\tsize %d\n", sm->ssd_size); DNPRINTF(SR_D_META, "\ton disk version %u\n", sm->ssd_ondisk); |