svn commit: r212703 - head/sys/geom/part
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Sep 15 20:59:13 UTC 2010
Author: pjd
Date: Wed Sep 15 20:59:13 2010
New Revision: 212703
URL: http://svn.freebsd.org/changeset/base/212703
Log:
Make the message that informs about bootcode being written to disk less
confusing.
Note there is still no information about 'partcode' being written to disk
(gpart bootcode -p <partcode> <disk>).
Maybe in the future all the messages printed by gpart(8) on success could be
hidden under -v?
PR: bin/150239
Reported by: Roddi <roddi at me.com>
Submitted by: arundel
MFC after: 2 weeks
Modified:
head/sys/geom/part/g_part.c
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Wed Sep 15 20:53:20 2010 (r212702)
+++ head/sys/geom/part/g_part.c Wed Sep 15 20:59:13 2010 (r212703)
@@ -636,7 +636,7 @@ g_part_ctl_bootcode(struct gctl_req *req
/* Provide feedback if so requested. */
if (gpp->gpp_parms & G_PART_PARM_OUTPUT) {
sb = sbuf_new_auto();
- sbuf_printf(sb, "%s has bootcode\n", gp->name);
+ sbuf_printf(sb, "bootcode written to %s\n", gp->name);
sbuf_finish(sb);
gctl_set_param(req, "output", sbuf_data(sb), sbuf_len(sb) + 1);
sbuf_delete(sb);
@@ -1032,7 +1032,7 @@ g_part_ctl_move(struct gctl_req *req, st
{
gctl_error(req, "%d verb 'move'", ENOSYS);
return (ENOSYS);
-}
+}
static int
g_part_ctl_recover(struct gctl_req *req, struct g_part_parms *gpp)
More information about the svn-src-all
mailing list