Module Name: src
Committed By: jnemeth
Date: Tue Dec 10 01:05:00 UTC 2013
Modified Files:
src/sbin/gpt: add.c resize.c set.c unset.c
Log Message:
Explicitly state which partition was added/modified.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sbin/gpt/add.c
cvs rdiff -u -r1.7 -r1.8 src/sbin/gpt/resize.c
cvs rdiff -u -r1.1 -r1.2 src/sbin/gpt/set.c src/sbin/gpt/unset.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/add.c
diff -u src/sbin/gpt/add.c:1.23 src/sbin/gpt/add.c:1.24
--- src/sbin/gpt/add.c:1.23 Sun Dec 8 09:32:51 2013
+++ src/sbin/gpt/add.c Tue Dec 10 01:05:00 2013
@@ -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 @@ add(int fd)
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");
Index: src/sbin/gpt/resize.c
diff -u src/sbin/gpt/resize.c:1.7 src/sbin/gpt/resize.c:1.8
--- src/sbin/gpt/resize.c:1.7 Sun Dec 8 09:32:51 2013
+++ src/sbin/gpt/resize.c Tue Dec 10 01:05:00 2013
@@ -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 @@ resize(int fd)
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");
Index: src/sbin/gpt/set.c
diff -u src/sbin/gpt/set.c:1.1 src/sbin/gpt/set.c:1.2
--- src/sbin/gpt/set.c:1.1 Mon Dec 9 08:03:17 2013
+++ src/sbin/gpt/set.c Tue Dec 10 01:05:00 2013
@@ -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 @@ set(int fd)
gpt_write(fd, lbt);
gpt_write(fd, tpg);
- printf("Partition attributes updated\n");
+ printf("Partition %d attributes updated\n", entry);
}
int
Index: src/sbin/gpt/unset.c
diff -u src/sbin/gpt/unset.c:1.1 src/sbin/gpt/unset.c:1.2
--- src/sbin/gpt/unset.c:1.1 Mon Dec 9 08:03:17 2013
+++ src/sbin/gpt/unset.c Tue Dec 10 01:05:00 2013
@@ -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 @@ unset(int fd)
gpt_write(fd, lbt);
gpt_write(fd, tpg);
- printf("Partition attributes updated\n");
+ printf("Partition %d attributes updated\n", entry);
}
int