summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2009-06-18 11:12:11 +0000
committerivoras <ivoras@FreeBSD.org>2009-06-18 11:12:11 +0000
commit23d60df09c4b066d4a55b23021605e0a449ac2c6 (patch)
tree666001ed0b0cc372792f910228e52b4011df9f01 /sys/geom
parent0707fa3c0b44ae64752fdb9829cf2a7033be59ae (diff)
downloadFreeBSD-src-23d60df09c4b066d4a55b23021605e0a449ac2c6.zip
FreeBSD-src-23d60df09c4b066d4a55b23021605e0a449ac2c6.tar.gz
Fix tabs, slightly improve comments.
Approved by: gnn (mentor) (original) Noticed by: stas
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/label/g_label_gpt.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/geom/label/g_label_gpt.c b/sys/geom/label/g_label_gpt.c
index 298a0ad..b186782 100644
--- a/sys/geom/label/g_label_gpt.c
+++ b/sys/geom/label/g_label_gpt.c
@@ -41,16 +41,16 @@ __FBSDID("$FreeBSD$");
#define PART_CLASS_NAME "PART"
#define SCHEME_NAME "GPT"
-#define G_LABEL_GPT_VOLUME_DIR "gpt"
-#define G_LABEL_GPT_ID_DIR "gptid"
+#define G_LABEL_GPT_VOLUME_DIR "gpt"
+#define G_LABEL_GPT_ID_DIR "gptid"
-/* also defined in geom/part/g_part_gpt.c */
+/* XXX: Also defined in geom/part/g_part_gpt.c */
struct g_part_gpt_entry {
struct g_part_entry base;
struct gpt_ent ent;
};
-/* shamelessly stolen from g_part_gpt.c */
+/* XXX: Shamelessly stolen from g_part_gpt.c */
static void
sbuf_nprintf_utf16(struct sbuf *sb, uint16_t *str, size_t len)
{
@@ -109,7 +109,7 @@ g_label_gpt_taste(struct g_consumer *cp, char *label, size_t size)
tp = (struct g_part_table *)pp->geom->softc;
label[0] = '\0';
- /* We taste only partitions from GPART */
+ /* We taste only partitions handled by GPART */
if (strncmp(pp->geom->class->name, PART_CLASS_NAME, sizeof(PART_CLASS_NAME)))
return;
/* and only GPT */
@@ -119,11 +119,11 @@ g_label_gpt_taste(struct g_consumer *cp, char *label, size_t size)
part_gpt_entry = (struct g_part_gpt_entry *)pp->private;
/*
- * create sbuf with biggest possible size
- * we need max. 4 bytes for every 2-byte utf16 char
+ * Create sbuf with biggest possible size.
+ * We need max. 4 bytes for every 2-byte utf16 char.
*/
lbl = sbuf_new(NULL, NULL, sizeof(part_gpt_entry->ent.ent_name) << 1, SBUF_FIXEDLEN);
- /* size ist the number of characters, not bytes */
+ /* Size is the number of characters, not bytes */
sbuf_nprintf_utf16(lbl, part_gpt_entry->ent.ent_name, sizeof(part_gpt_entry->ent.ent_name) >> 1);
sbuf_finish(lbl);
strlcpy(label, sbuf_data(lbl), size);
@@ -142,7 +142,7 @@ g_label_gpt_uuid_taste(struct g_consumer *cp, char *label, size_t size)
tp = (struct g_part_table *)pp->geom->softc;
label[0] = '\0';
- /* we taste only partitions from GPART */
+ /* We taste only partitions handled by GPART */
if (strncmp(pp->geom->class->name, PART_CLASS_NAME, sizeof(PART_CLASS_NAME)))
return;
/* and only GPT */
OpenPOWER on IntegriCloud