Module Name: src Committed By: snj Date: Fri Aug 14 20:55:29 UTC 2009
Modified Files: src/sbin/dkctl [netbsd-5]: dkctl.c Log Message: Pull up following revision(s) (requested by spz in ticket #887): sbin/dkctl/dkctl.c: revision 1.18 make dkctl conform to its man page and print the device name on addwedge when the addition was successful (as well as indicating success). To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.16.28.1 src/sbin/dkctl/dkctl.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/dkctl/dkctl.c diff -u src/sbin/dkctl/dkctl.c:1.16 src/sbin/dkctl/dkctl.c:1.16.28.1 --- src/sbin/dkctl/dkctl.c:1.16 Sat Jun 17 02:16:19 2006 +++ src/sbin/dkctl/dkctl.c Fri Aug 14 20:55:29 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dkctl.c,v 1.16 2006/06/17 02:16:19 christos Exp $ */ +/* $NetBSD: dkctl.c,v 1.16.28.1 2009/08/14 20:55:29 snj Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -41,7 +41,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: dkctl.c,v 1.16 2006/06/17 02:16:19 christos Exp $"); +__RCSID("$NetBSD: dkctl.c,v 1.16.28.1 2009/08/14 20:55:29 snj Exp $"); #endif @@ -533,6 +533,9 @@ if (ioctl(fd, DIOCAWEDGE, &dkw) == -1) err(1, "%s: addwedge", dvname); + else + printf("%s created successfully.\n", dkw.dkw_devname); + } void