Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt UFS is called FFS in the NetBSD case. Display as s...



details:   https://anonhg.NetBSD.org/src/rev/e082e56abf07
branches:  trunk
changeset: 760519:e082e56abf07
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Jan 06 16:30:40 2011 +0000

description:
UFS is called FFS in the NetBSD case.  Display as such and accept as input.

diffstat:

 sbin/gpt/add.c  |  8 ++++----
 sbin/gpt/gpt.c  |  9 ++++++++-
 sbin/gpt/show.c |  8 ++++----
 3 files changed, 16 insertions(+), 9 deletions(-)

diffs (84 lines):

diff -r 3aefb99bfa8e -r e082e56abf07 sbin/gpt/add.c
--- a/sbin/gpt/add.c    Thu Jan 06 15:24:33 2011 +0000
+++ b/sbin/gpt/add.c    Thu Jan 06 16:30:40 2011 +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.8 2009/02/07 18:12:22 uebayasi Exp $");
+__RCSID("$NetBSD: add.c,v 1.9 2011/01/06 16:30:40 jakllsch Exp $");
 #endif
 
 #include <sys/types.h>
@@ -213,10 +213,10 @@
        if (argc == optind)
                usage_add();
 
-       /* Create UFS partitions by default. */
+       /* Create NetBSD FFS partitions by default. */
        if (uuid_is_nil(&type, NULL)) {
-               uuid_t ufs = GPT_ENT_TYPE_NETBSD_FFS;
-               type = ufs;
+               uuid_t nb_ffs = GPT_ENT_TYPE_NETBSD_FFS;
+               type = nb_ffs;
        }
 
        while (optind < argc) {
diff -r 3aefb99bfa8e -r e082e56abf07 sbin/gpt/gpt.c
--- a/sbin/gpt/gpt.c    Thu Jan 06 15:24:33 2011 +0000
+++ b/sbin/gpt/gpt.c    Thu Jan 06 16:30:40 2011 +0000
@@ -31,7 +31,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.13 2011/01/06 01:08:48 jakllsch Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.14 2011/01/06 16:30:40 jakllsch Exp $");
 #endif
 
 #include <sys/param.h>
@@ -306,6 +306,13 @@
                        return (0);
                }
                break;
+       case 'f':
+               if (strcmp(s, "ffs") == 0) {
+                       uuid_t nb_ffs = GPT_ENT_TYPE_NETBSD_FFS;
+                       *uuid = nb_ffs;
+                       return (0);
+               }
+               break;
        case 'h':
                if (strcmp(s, "hfs") == 0) {
                        uuid_t hfs = GPT_ENT_TYPE_APPLE_HFS;
diff -r 3aefb99bfa8e -r e082e56abf07 sbin/gpt/show.c
--- a/sbin/gpt/show.c   Thu Jan 06 15:24:33 2011 +0000
+++ b/sbin/gpt/show.c   Thu Jan 06 16:30:40 2011 +0000
@@ -29,7 +29,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.5 2008/02/24 18:38:10 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.6 2011/01/06 16:30:40 jakllsch Exp $");
 #endif
 
 #include <sys/types.h>
@@ -72,7 +72,7 @@
        static uuid_t ufs = GPT_ENT_TYPE_FREEBSD_UFS;
        static uuid_t vinum = GPT_ENT_TYPE_FREEBSD_VINUM;
        static uuid_t nb_swap = GPT_ENT_TYPE_NETBSD_SWAP;
-       static uuid_t nb_ufs = GPT_ENT_TYPE_NETBSD_FFS;
+       static uuid_t nb_ffs = GPT_ENT_TYPE_NETBSD_FFS;
        static uuid_t nb_lfs = GPT_ENT_TYPE_NETBSD_LFS;
        static uuid_t nb_raid = GPT_ENT_TYPE_NETBSD_RAIDFRAME;
        static uuid_t nb_ccd = GPT_ENT_TYPE_NETBSD_CCD;
@@ -89,8 +89,8 @@
                return ("BIOS Boot");
        if (uuid_equal(t, &nb_swap, NULL))
                return ("NetBSD swap");
-       if (uuid_equal(t, &nb_ufs, NULL))
-               return ("NetBSD UFS/UFS2");
+       if (uuid_equal(t, &nb_ffs, NULL))
+               return ("NetBSD FFSv1/FFSv2");
        if (uuid_equal(t, &nb_lfs, NULL))
                return ("NetBSD LFS");
        if (uuid_equal(t, &nb_raid, NULL))



Home | Main Index | Thread Index | Old Index