Module Name:    src
Committed By:   christos
Date:           Sat Sep 24 13:40:55 UTC 2016

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
say that you need to destroy it first.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sbin/gpt/gpt.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/gpt.c
diff -u src/sbin/gpt/gpt.c:1.68 src/sbin/gpt/gpt.c:1.69
--- src/sbin/gpt/gpt.c:1.68	Thu Jun  9 11:12:54 2016
+++ src/sbin/gpt/gpt.c	Sat Sep 24 09:40:55 2016
@@ -35,7 +35,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.68 2016/06/09 15:12:54 christos Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.69 2016/09/24 13:40:55 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -795,7 +795,8 @@ gpt_create(gpt_t gpt, off_t last, u_int 
 
 	if (map_find(gpt, MAP_TYPE_PRI_GPT_HDR) != NULL ||
 	    map_find(gpt, MAP_TYPE_SEC_GPT_HDR) != NULL) {
-		gpt_warnx(gpt, "Device already contains a GPT");
+		gpt_warnx(gpt, "Device already contains a GPT, "
+		    "destroy it first");
 		return -1;
 	}
 

Reply via email to