CVS commit: src/sbin/dmctl

2017-06-04 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Jun  4 08:34:34 UTC 2017

Modified Files:
src/sbin/dmctl: dmctl.8

Log Message:
Fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/dmctl/dmctl.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/dmctl.8
diff -u src/sbin/dmctl/dmctl.8:1.4 src/sbin/dmctl/dmctl.8:1.5
--- src/sbin/dmctl/dmctl.8:1.4	Sun Sep 11 02:18:52 2016
+++ src/sbin/dmctl/dmctl.8	Sun Jun  4 08:34:34 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: dmctl.8,v 1.4 2016/09/11 02:18:52 sevan Exp $
+.\" $NetBSD: dmctl.8,v 1.5 2017/06/04 08:34:34 abhinav Exp $
 .\"
 .\" Copyright (c) 2004,2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -48,7 +48,7 @@ It can send and receive information and 
 .It Li remove Ta Remove device with [dm device name].
 .It Li resume Ta Resume IO on dm device [dm device name].
 .It Li suspend Ta Suspend IO on dm device [dm device name].
-.It Li deps Ta Print physical dependiences for dm device [dm device name].
+.It Li deps Ta Print physical dependencies for dm device [dm device name].
 .It Li reload Ta Switch active and passive tables for [dm device name].
 .It Li status Ta Print status for device with [dm device name].
 .It Li table Ta Print active table for device with [dm device name].



CVS commit: src/sbin/dmctl

2016-09-10 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Sep 11 02:18:52 UTC 2016

Modified Files:
src/sbin/dmctl: dmctl.8

Log Message:
Mention author in AUTHORS section.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sbin/dmctl/dmctl.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/dmctl.8
diff -u src/sbin/dmctl/dmctl.8:1.3 src/sbin/dmctl/dmctl.8:1.4
--- src/sbin/dmctl/dmctl.8:1.3	Mon Feb 21 17:05:50 2011
+++ src/sbin/dmctl/dmctl.8	Sun Sep 11 02:18:52 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: dmctl.8,v 1.3 2011/02/21 17:05:50 njoly Exp $
+.\" $NetBSD: dmctl.8,v 1.4 2016/09/11 02:18:52 sevan Exp $
 .\"
 .\" Copyright (c) 2004,2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
-.Dd January 23, 2011
+.Dd September 11, 2016
 .Dt DMCTL 8
 .Os
 .Sh NAME
@@ -59,9 +59,11 @@ It can send and receive information and 
 .Sh HISTORY
 The
 .Nm
+utility appeared in
+.Nx 6.0 .
+.Sh AUTHORS
+.Nm
 was written and contributed to
 .Nx
 by
-.An Adam Hamsik
-and first appeared in
-.Nx 6.0 .
+.An Adam Hamsik .



CVS commit: src/sbin/dmctl

2011-08-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Aug 27 17:07:28 UTC 2011

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

Log Message:
static. dead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/dmctl/dmctl.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/dmctl/dmctl.c
diff -u src/sbin/dmctl/dmctl.c:1.2 src/sbin/dmctl/dmctl.c:1.3
--- src/sbin/dmctl/dmctl.c:1.2	Tue Feb  8 13:58:54 2011
+++ src/sbin/dmctl/dmctl.c	Sat Aug 27 17:07:28 2011
@@ -66,9 +66,8 @@
 	int (*cmd_func)(int, char *[], libdm_task_t);
 };
 
-int fd; /* file descriptor for device */
-const   char *dvname;   /* device name */
-const   char *cmdname;  /* command user issued */
+static const   char *dvname;/* device name */
+static const   char *cmdname;   /* command user issued */
 
 static char * parse_stdin(char *);
 
@@ -84,9 +83,9 @@
 static int dmctl_list_devices(int, char *[], libdm_task_t);
 static int dmctl_table_reload(int, char *[], libdm_task_t);
 static int dmctl_table_status(int, char *[], libdm_task_t);
-void usage(void);
+__dead static void usage(void);
 
-struct command commands[] = {
+static struct command commands[] = {
 	{ version,
 	  Print driver and lib version.,
 	  NULL, DMCTL_CMD_REQ_NODEVNAME,
@@ -537,7 +536,7 @@
 	return 0;
 }
 
-void
+static void
 usage(void)
 {
 	int i;



CVS commit: src/sbin/dmctl

2011-02-21 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Feb 21 17:05:50 UTC 2011

Modified Files:
src/sbin/dmctl: dmctl.8

Log Message:
Small typo in macro (Ii - It).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/dmctl/dmctl.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/dmctl.8
diff -u src/sbin/dmctl/dmctl.8:1.2 src/sbin/dmctl/dmctl.8:1.3
--- src/sbin/dmctl/dmctl.8:1.2	Tue Feb  8 09:51:17 2011
+++ src/sbin/dmctl/dmctl.8	Mon Feb 21 17:05:50 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: dmctl.8,v 1.2 2011/02/08 09:51:17 wiz Exp $
+.\ $NetBSD: dmctl.8,v 1.3 2011/02/21 17:05:50 njoly Exp $
 .\
 .\ Copyright (c) 2004,2009 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -39,7 +39,7 @@
 works with the device-mapper kernel driver.
 It can send and receive information and commands from the dm driver.
 .Bl -column -offset indent suspend Switch active and passive tables for
-.Ii Li version Ta Print driver and lib version.
+.It Li version Ta Print driver and lib version.
 .It Li targets Ta List available kernel targets.
 .It Li create Ta Create device with [dm device name].
 .It Li ls Ta List existing dm devices.



CVS commit: src/sbin/dmctl

2011-02-08 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Feb  8 09:51:17 UTC 2011

Modified Files:
src/sbin/dmctl: dmctl.8

Log Message:
Improve a bit.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/dmctl/dmctl.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/dmctl.8
diff -u src/sbin/dmctl/dmctl.8:1.1 src/sbin/dmctl/dmctl.8:1.2
--- src/sbin/dmctl/dmctl.8:1.1	Tue Feb  8 03:20:15 2011
+++ src/sbin/dmctl/dmctl.8	Tue Feb  8 09:51:17 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: dmctl.8,v 1.1 2011/02/08 03:20:15 haad Exp $
+.\ $NetBSD: dmctl.8,v 1.2 2011/02/08 09:51:17 wiz Exp $
 .\
 .\ Copyright (c) 2004,2009 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -26,18 +26,18 @@
 .\ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
-.Dd Januar 23, 2011
+.Dd January 23, 2011
 .Dt DMCTL 8
 .Os
 .Sh NAME
 .Nm dmctl
-.Nd Manipulate device-mapper driver command
+.Nd manipulate device-mapper driver command
 .Sh SYNOPSIS
 .Nm
 .Sh DESCRIPTION
 .Nm
-work with device-mapper kernel driver it can send/receive information and
-commands from dm driver.
+works with the device-mapper kernel driver.
+It can send and receive information and commands from the dm driver.
 .Bl -column -offset indent suspend Switch active and passive tables for
 .Ii Li version Ta Print driver and lib version.
 .It Li targets Ta List available kernel targets.
@@ -54,12 +54,14 @@
 .It Li table Ta Print active table for device with [dm device name].
 .El
 .Sh SEE ALSO
-.Xr dm 4 ,
-.Xr libdm 3
+.Xr dm 3 ,
+.Xr dm 4
 .Sh HISTORY
 The
 .Nm
 was written and contributed to
 .Nx
-by Adam Hamsik and first appeared in
+by
+.An Adam Hamsik
+and first appeared in
 .Nx 6.0 .



CVS commit: src/sbin/dmctl

2011-02-08 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Feb  8 09:51:55 UTC 2011

Modified Files:
src/sbin/dmctl: README

Log Message:
Fix typos.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/dmctl/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/README
diff -u src/sbin/dmctl/README:1.1 src/sbin/dmctl/README:1.2
--- src/sbin/dmctl/README:1.1	Tue Feb  8 03:20:15 2011
+++ src/sbin/dmctl/README	Tue Feb  8 09:51:55 2011
@@ -1,9 +1,8 @@
-
 = RUMP howto =
 
-Build rump dm library, buidl libdm with RUMP_ACTION, build dmct with RUMP_ACTION.
+Build rump dm library, build libdm with RUMP_ACTION, build dmct with RUMP_ACTION.
 
-cd local/lib/libdm/
+cd lib/libdm/
 RUMP_ACTION=1 USETOOLS=no make
 
 cd ../../sbin/dmctl



CVS commit: src/sbin/dmctl

2011-02-08 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Feb  8 13:58:54 UTC 2011

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

Log Message:
Use PRIu64 to fix build on amd64 (and presumably other 64-bit ports)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/dmctl/dmctl.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/dmctl/dmctl.c
diff -u src/sbin/dmctl/dmctl.c:1.1 src/sbin/dmctl/dmctl.c:1.2
--- src/sbin/dmctl/dmctl.c:1.1	Tue Feb  8 03:20:16 2011
+++ src/sbin/dmctl/dmctl.c	Tue Feb  8 13:58:54 2011
@@ -474,7 +474,7 @@
 	while ((params = parse_stdin(file_path)) != NULL) {
 		table = libdm_table_create();
 
-		sscanf(params, %llu %llu %s %n, start, length, target, len);
+		sscanf(params, %PRIu64 %PRIu64 %s %n, start, length, target, len);
 
 		libdm_table_set_start(start, table);
 		libdm_table_set_length(length, table);