CVS commit: src/usr.bin/rump_allserver

2023-04-24 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Apr 24 18:54:22 UTC 2023

Modified Files:
src/usr.bin/rump_allserver: Makefile

Log Message:
rump_allserver: trim down the list of libraries

Now that cyclic dependencies are (mostly) broken, we can drop repeated
-l instances that worked around those cycles.  Links on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/rump_allserver/Makefile

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

Modified files:

Index: src/usr.bin/rump_allserver/Makefile
diff -u src/usr.bin/rump_allserver/Makefile:1.15 src/usr.bin/rump_allserver/Makefile:1.16
--- src/usr.bin/rump_allserver/Makefile:1.15	Mon Nov  1 21:37:33 2021
+++ src/usr.bin/rump_allserver/Makefile	Mon Apr 24 18:54:22 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2021/11/01 21:37:33 nia Exp $
+#	$NetBSD: Makefile,v 1.16 2023/04/24 18:54:22 uwe Exp $
 #
 
 PROG=	rump_allserver
@@ -14,7 +14,8 @@ RUMPTOP=${.CURDIR}/../../sys/rump
 .include "${RUMPTOP}/net/Makefile.rumpnetcomp"
 
 LDADD+=	${RUMPDEVLDADD} ${RUMPFSLDADD} ${RUMPKERNLDADD} ${RUMPNETLDADD}
-LDADD+= -lrumpdev -lrumpnet -lrumpvfs -lrump -lrumpvfs -lrumpvfs_nofifofs -lrump -lrumpuser -lpthread
+LDADD+=	-lrumpdev -lrumpnet -lrumpvfs -lrumpvfs_nofifofs
+LDADD+=	-lrump -lrumpuser -lpthread
 
 .if ${RUMP_SANITIZE:Uno} != "no"
 LDADD+=	-fsanitize=${RUMP_SANITIZE}



CVS commit: src/usr.bin/rump_allserver

2023-04-24 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Apr 24 18:54:22 UTC 2023

Modified Files:
src/usr.bin/rump_allserver: Makefile

Log Message:
rump_allserver: trim down the list of libraries

Now that cyclic dependencies are (mostly) broken, we can drop repeated
-l instances that worked around those cycles.  Links on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/rump_allserver/Makefile

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



CVS commit: src/usr.bin/rump_allserver

2023-04-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Apr 24 00:07:04 UTC 2023

Modified Files:
src/usr.bin/rump_allserver: rump_allserver.1

Log Message:
rump_allserver(1): fix markup, clarify

Reorder text for the -d option to hopefully make it easier to follow.
Clarify that the "disklabel" keyword takes partion letter (from RTFS).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/rump_allserver/rump_allserver.1

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

Modified files:

Index: src/usr.bin/rump_allserver/rump_allserver.1
diff -u src/usr.bin/rump_allserver/rump_allserver.1:1.23 src/usr.bin/rump_allserver/rump_allserver.1:1.24
--- src/usr.bin/rump_allserver/rump_allserver.1:1.23	Thu Nov  5 14:02:07 2015
+++ src/usr.bin/rump_allserver/rump_allserver.1	Mon Apr 24 00:07:04 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: rump_allserver.1,v 1.23 2015/11/05 14:02:07 wiz Exp $
+.\"	$NetBSD: rump_allserver.1,v 1.24 2023/04/24 00:07:04 uwe Exp $
 .\"
 .\" Copyright (c) 2010 Antti Kantee.  All rights reserved.
 .\"
@@ -23,7 +23,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd January 15, 2014
+.Dd April 24, 2023
 .Dt RUMP_SERVER 1
 .Os
 .Sh NAME
@@ -61,7 +61,7 @@ provides all rump kernel components whic
 system was built.
 At execution time it is possible to load components from the command
 line as described in the options section.
-.Bl -tag -width indent
+.Bl -tag -width Fl
 .It Fl c Ar ncpu
 Configure
 .Ar ncpu
@@ -75,76 +75,91 @@ maps a host file in the rump kernel fs n
 The string
 .Ar drivespec
 must be of comma-separated
-.Dq name=value
+.Sm off
+.Ar name\^ Li = Ar value
+.Sm on
 format and must contain the following tokens:
-.Bl -tag -width hostpath1234
-.It Ar key
+.
+.Bl -tag -width Ic -offset indent
+.
+.It Ic key
 Block device path in rump kernel namespace.
 This must be specified according to the rules for a key in
 .Xr rump_etfs 3 .
-.It Ar hostpath
+.
+.It Ic hostpath
 Host file used for storage.
 If the file does not exist, it will be created.
-.It Ar size
-Size of the mapping.
-Similar to
-.Xr dd 1 ,
-this argument accepts a suffix as the multiplier for the number.
-The special value
-.Dq host
-indicates that the current size of
-.Ar hostpath
-will be used.
-In this case it is assumed that
-.Ar hostpath
-exists and is a regular file.
-.It OR
-.It Ar disklabel
-Use a disklabel partition identifier to specify the offset and size
-of the mapping.
-.Ar hostpath
-must contain an existing and valid disklabel within the first 64k.
 .El
+.
 .Pp
-The following are optional:
-.Bl -tag -width hostpath1234
-.It Ar offset
-Offset of the mapping.
-The window into
-.Ar hostpath
-therefore is
-.Fa [ offset , offset+size ] .
-In case this parameter is not given, the default value 0 is used.
-.It Ar type
 The type of file that
-.Ar key
-is exposed as within the rump kernel.
-The possibilities are
-.Dq blk ,
-.Dq chr ,
+.Ic key
+is exposed as within the rump kernel is specified with:
+.
+.Bl -tag -width Ic -offset indent
+.It Ic type
+Possible values are
+.Ql blk ,
+.Ql chr ,
 and
-.Dq reg
+.Ql reg
 for block device, character device and regular file, respectively.
-The default is a block device.
+The default is a block device
+.Pq Ql blk .
 .Pp
-Note: the contents of block devices are cached in the rump kernel's
+.Sy Note :
+the contents of block devices are cached in the rump kernel's
 buffer cache.
 To avoid cache incoherency, it is advisable not to access a file
 through the host namespace while it is mapped as a block device in
 a rump kernel.
 .El
+.
+.Pp
+For block and character devices the
+.Bq Va offset Ns \&,\~ Ns Va offset Ns + Ns Va size
+region of the file must be specified with:
+.
+.Bl -tag -width Ic -offset indent
+.
+.It Ic disklabel
+Use a disklabel partition letter to specify the offset and size
+of the mapping.
+.Ic hostpath
+must contain a valid disklabel within the first 64k.
+.
+.It Ic offset
+Offset of the mapping.
+The default is 0.
+.
+.It Ic size
+Size of the mapping.
+Similar to
+.Xr dd 1 ,
+this argument accepts a suffix as the multiplier for the number.
+The special value
+.Ql host
+indicates that the current size of
+.Ic hostpath
+will be used.
+In this case it is assumed that
+.Ic hostpath
+exists and is a regular file.
+.El
+.
 .Pp
 In case
-.Ar hostpath
+.Ic hostpath
 does not exist, it will be created as a regular file with mode
 0644 (plus any restrictions placed by umask).
 In case
-.Ar hostpath
+.Ic hostpath
 is a regular file and is not large enough to accommodate the
 specified size, it will be extended to the specified size.
 .It Fl l Ar library
 Call
-.Fn dlopen
+.Xr dlopen 3
 on library before initializing the rump kernel.
 In case
 .Ar library
@@ -163,13 +178,13 @@ error due to missing components.
 To test a configuration, run
 .Nm
 with
-.Ev LD_BIND_NOW=1
-(see examples).
+.Ev LD_BIND_NOW Ns Li \&=1
+.Pq see Sx 

CVS commit: src/usr.bin/rump_allserver

2023-04-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Apr 24 00:07:04 UTC 2023

Modified Files:
src/usr.bin/rump_allserver: rump_allserver.1

Log Message:
rump_allserver(1): fix markup, clarify

Reorder text for the -d option to hopefully make it easier to follow.
Clarify that the "disklabel" keyword takes partion letter (from RTFS).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/rump_allserver/rump_allserver.1

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



Re: CVS commit: src/usr.bin/rump_allserver

2013-09-10 Thread Christos Zoulas
In article 20130910203608.3ae6...@cvs.netbsd.org,
Antti Kantee source-changes-d@NetBSD.org wrote:
-=-=-=-=-=-

Module Name:   src
Committed By:  pooka
Date:  Tue Sep 10 20:36:08 UTC 2013

Modified Files:
   src/usr.bin/rump_allserver: rump_allserver.c

Log Message:
Not all systems sport err.h, so redo those bits using the die() routine
we need to have hanging around anyway for proper error reporting from
a daemonizing server.  le sigh

I object! Programming for the lowest common denominator in the name
of portability is completely bogus. Provide a library that supplies
the missing functions instead!

christos



Re: CVS commit: src/usr.bin/rump_allserver

2010-12-15 Thread Antti Kantee
On Wed Dec 15 2010 at 09:40:22 +, Thomas Klausner wrote:
 Modified Files:
   src/usr.bin/rump_allserver: rump_allserver.c
 
 Log Message:
 Sort options in usage same as in man page.
 While here, replace \xa0 with ' '. Where do you get these from?

Dunno, some weird combination of netbsd/keyboard/vi.  Seems to happen
especially when showmatch triggers from } and ]

-- 
älä karot toivorikkauttas, kyl rätei ja lumpui piisaa