From owner-svn-src-all@FreeBSD.ORG Thu Jun 18 11:12:12 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 176EB106566B; Thu, 18 Jun 2009 11:12:12 +0000 (UTC) (envelope-from ivoras@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 05B8C8FC0A; Thu, 18 Jun 2009 11:12:12 +0000 (UTC) (envelope-from ivoras@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5IBCBrK009740; Thu, 18 Jun 2009 11:12:11 GMT (envelope-from ivoras@svn.freebsd.org) Received: (from ivoras@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5IBCB6J009738; Thu, 18 Jun 2009 11:12:11 GMT (envelope-from ivoras@svn.freebsd.org) Message-Id: <200906181112.n5IBCB6J009738@svn.freebsd.org> From: Ivan Voras Date: Thu, 18 Jun 2009 11:12:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194433 - head/sys/geom/label X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 11:12:12 -0000 Author: ivoras Date: Thu Jun 18 11:12:11 2009 New Revision: 194433 URL: http://svn.freebsd.org/changeset/base/194433 Log: Fix tabs, slightly improve comments. Approved by: gnn (mentor) (original) Noticed by: stas Modified: head/sys/geom/label/g_label_gpt.c Modified: head/sys/geom/label/g_label_gpt.c ============================================================================== --- head/sys/geom/label/g_label_gpt.c Thu Jun 18 11:12:10 2009 (r194432) +++ head/sys/geom/label/g_label_gpt.c Thu Jun 18 11:12:11 2009 (r194433) @@ -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, 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, 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 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 */