Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Explicitly state which partition was added/modified.



details:   https://anonhg.NetBSD.org/src/rev/ae4d6660fb86
branches:  trunk
changeset: 325180:ae4d6660fb86
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Tue Dec 10 01:05:00 2013 +0000

description:
Explicitly state which partition was added/modified.

diffstat:

 sbin/gpt/add.c    |  4 ++--
 sbin/gpt/resize.c |  4 ++--
 sbin/gpt/set.c    |  4 ++--
 sbin/gpt/unset.c  |  4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diffs (84 lines):

diff -r c57f02a66afa -r ae4d6660fb86 sbin/gpt/add.c
--- a/sbin/gpt/add.c    Mon Dec 09 21:13:21 2013 +0000
+++ b/sbin/gpt/add.c    Tue Dec 10 01:05:00 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.23 2013/12/08 09:32:51 jnemeth Exp $");
+__RCSID("$NetBSD: add.c,v 1.24 2013/12/10 01:05:00 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -180,7 +180,7 @@
        gpt_write(fd, lbt);
        gpt_write(fd, tpg);
 
-       printf("Partition added, use:\n");
+       printf("Partition %d added, use:\n", i + 1);
        printf("\tdkctl %s addwedge <wedgename> %" PRIu64 " %" PRIu64
            " <type>\n", device_arg, map->map_start, map->map_size);
        printf("to create a wedge for it\n");
diff -r c57f02a66afa -r ae4d6660fb86 sbin/gpt/resize.c
--- a/sbin/gpt/resize.c Mon Dec 09 21:13:21 2013 +0000
+++ b/sbin/gpt/resize.c Tue Dec 10 01:05:00 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: resize.c,v 1.7 2013/12/08 09:32:51 jnemeth Exp $");
+__RCSID("$NetBSD: resize.c,v 1.8 2013/12/10 01:05:00 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -165,7 +165,7 @@
        gpt_write(fd, lbt);
        gpt_write(fd, tpg);
 
-       printf("Partition resized, use:\n");
+       printf("Partition %d resized, use:\n", entry);
        printf("\tdkctl %s addwedge <wedgename> %" PRIu64 " %" PRIu64
            " <type>\n", device_arg, map->map_start, newsize);
        printf("to create a wedge for it\n");
diff -r c57f02a66afa -r ae4d6660fb86 sbin/gpt/set.c
--- a/sbin/gpt/set.c    Mon Dec 09 21:13:21 2013 +0000
+++ b/sbin/gpt/set.c    Tue Dec 10 01:05:00 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: set.c,v 1.1 2013/12/09 08:03:17 jnemeth Exp $");
+__RCSID("$NetBSD: set.c,v 1.2 2013/12/10 01:05:00 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -131,7 +131,7 @@
        gpt_write(fd, lbt);
        gpt_write(fd, tpg);
 
-       printf("Partition attributes updated\n");
+       printf("Partition %d attributes updated\n", entry);
 }
 
 int
diff -r c57f02a66afa -r ae4d6660fb86 sbin/gpt/unset.c
--- a/sbin/gpt/unset.c  Mon Dec 09 21:13:21 2013 +0000
+++ b/sbin/gpt/unset.c  Tue Dec 10 01:05:00 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: unset.c,v 1.1 2013/12/09 08:03:17 jnemeth Exp $");
+__RCSID("$NetBSD: unset.c,v 1.2 2013/12/10 01:05:00 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -131,7 +131,7 @@
        gpt_write(fd, lbt);
        gpt_write(fd, tpg);
 
-       printf("Partition attributes updated\n");
+       printf("Partition %d attributes updated\n", entry);
 }
 
 int



Home | Main Index | Thread Index | Old Index