Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt When setting a label on the new partition, be sure ...
details: https://anonhg.NetBSD.org/src/rev/5755aaada4ce
branches: trunk
changeset: 791470:5755aaada4ce
user: jnemeth <jnemeth%NetBSD.org@localhost>
date: Tue Nov 19 19:10:29 2013 +0000
description:
When setting a label on the new partition, be sure to set the label
in the secondary partition table as well.
diffstat:
sbin/gpt/add.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 43420c9e762b -r 5755aaada4ce sbin/gpt/add.c
--- a/sbin/gpt/add.c Tue Nov 19 17:01:45 2013 +0000
+++ b/sbin/gpt/add.c Tue Nov 19 19:10:29 2013 +0000
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: add.c,v 1.15 2013/11/19 05:03:41 jnemeth Exp $");
+__RCSID("$NetBSD: add.c,v 1.16 2013/11/19 19:10:29 jnemeth Exp $");
#endif
#include <sys/types.h>
@@ -171,6 +171,8 @@
le_uuid_enc(ent->ent_type, &type);
ent->ent_lba_start = htole64(map->map_start);
ent->ent_lba_end = htole64(map->map_start + map->map_size - 1LL);
+ if (name != NULL)
+ utf8_to_utf16(name, ent->ent_name, 36);
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
Home |
Main Index |
Thread Index |
Old Index