Commit Graph

51 Commits

Author SHA1 Message Date
pooka 401f0b87d5 Remove LD_DYNAMIC_WEAK whine, by large it's not necessary anymore. 2014-04-27 15:26:05 +00:00
pooka 3f0878753a On glibc systems, issue a warning if LD_DYNAMIC_WEAK is not 2014-03-21 16:26:30 +00:00
pooka c06e5f9624 alleviate may-be-used-unused 2014-01-16 02:20:50 +00:00
pooka 77666f11e0 terminology audit 2014-01-16 00:32:48 +00:00
pooka 5304903c03 Attempt to load all components even if they are not given in
dependency order.
2014-01-16 00:31:39 +00:00
pooka 4b870e3771 Use signal.h instead of sys/signal.h. The latter is not standard
and does not exist at least on systems with musl libc.

from Justin Cormack
2013-12-31 00:23:56 +00:00
pooka a1ee0e7eea Actually, nevermind with the whole LD_DYNAMIC_WEAK business, forgot
to unset it from the shell before testing.
2013-12-18 20:56:32 +00:00
pooka e51a22a59b Set LD_DYNAMIC_WEAK, required by glibc ld.so for -l params.
(this accidentally slipped in the previous commit already, but
I'm recommitting it to get cvs annotate right)
2013-12-18 20:50:30 +00:00
pooka 57d34ab9b0 Use rumperr to print correct error strings on !NetBSD. 2013-12-18 20:48:31 +00:00
bad a88c18e5e2 Don't hold back, tell us how you really feel when dlopen() fails. 2013-12-16 23:27:33 +00:00
pooka cbdf0ef490 Support disklabel partitions on all platforms.
also addresses buildrump.sh issue #41 (github)
2013-11-13 17:47:27 +00:00
pooka 8b205e8660 make -m available on all platforms 2013-11-13 16:43:38 +00:00
pooka d5e9a0d652 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
2013-09-10 20:36:08 +00:00
pooka 7066c11a5f <sys/cdefs.h> comes from rumpuser_port.h 2013-09-10 19:42:32 +00:00
pooka 22882349e0 Need bsd.own.mk for mk.conf, include it at an opportune place. 2013-09-10 18:28:46 +00:00
pooka ff8534b0b9 Make it possible to omit libutil from the link. It's used only for
disklabel stuff, and is only harmful on platforms that don't currently
provide user namespace disklabel interfaces.
2013-09-10 18:22:55 +00:00
pooka 4e5f4292e3 Make this work on platforms without disklabels, modules, etc. 2013-09-10 17:59:52 +00:00
pooka 56651ceb36 Do like the comment suggests and don't sanity-check the -c parameter here,
since we can't do it properly.
2013-09-10 17:13:29 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
pooka 72867841aa adjust wording in previous 2011-03-04 09:13:23 +00:00
pooka 2c06d51fbf Add note about block device properties.
From discussion with <riz>.
2011-03-04 09:10:33 +00:00
pooka 56905440b6 .Xr rump_sp 7 2011-02-23 19:59:18 +00:00
pooka b6c13d8580 * at least try to query size of non-regular size=host files too,
give up if we get 0
* fix a few error messages
2011-02-22 15:51:59 +00:00
pooka 29d11b7713 add command line options for kernel memory allocation limit and bootverbose 2011-02-21 18:50:21 +00:00
pooka 090a5e7d74 Use "host" instead of the slightly more cryptic "e" to indicate
that the size of the mapping should be taken from the host file
size.
2011-02-18 09:54:03 +00:00
pooka f6adb4bdd8 Use "size=e" as a way say "if the underlying file is preexisting
regular file, use whatever size it has".
2011-02-17 16:59:46 +00:00
pooka aaf2cb63d0 Make it possible to specify the type of file (blk/chr/reg) that a
mapped file (-d) is exposed as within the rump kernel.
2011-02-17 16:03:05 +00:00
pooka 74135a6c04 Allow to specify -d hostpath offset,size with disklabel. 2011-02-04 20:06:23 +00:00
pooka a9061c30c5 Create backing image with mode 0644 instead of 0755 & document this. 2011-02-03 11:25:27 +00:00
pooka 53c3cffec5 whoopsie, bump date 2011-02-03 11:21:43 +00:00
pooka ed37916e33 * make it possible to specify an offset in -d
* truncate -d hostpath only if it's a regular file and smaller
  than offset+size
2011-02-03 11:21:16 +00:00
pooka 3c2830fb5d BUGS is gone (and on its way out it inquired about the doctor's status) 2011-01-08 09:36:26 +00:00
wiz 23e235307b Fix usage (8th bit begone!) 2011-01-03 12:18:25 +00:00
pooka 6fd00c3f62 Add -c to control the number of CPUs configured in the kernel. 2011-01-03 10:44:40 +00:00
pooka bd7256bb7c Guard against supplying the same parameter multiple times in one -d argument. 2010-12-15 19:07:43 +00:00
pooka f258e5074a language fix. sniped by wizd 2010-12-15 18:42:59 +00:00
pooka 8457e85a38 document the current syscall bug with rump_server and -l 2010-12-15 16:23:55 +00:00
wiz 77b9f93f9e Sort options in usage same as in man page.
While here, replace \xa0 with ' '. Where do you get these from?
2010-12-15 09:40:21 +00:00
pooka b6c04e07af Add an example for a server listening on a tcp port.
also, bump date to avoid problems with wizd
2010-12-14 19:52:14 +00:00
pooka dbc10b5a41 Add -d which can be used to register host-backed block devices in
the rump kernel.

It would be cool if this, and the other options, could be specified
in a config file (plist or other).
2010-12-14 16:40:05 +00:00
wiz d5dca2a9ff Fix Xr and use Sx. 2010-12-14 09:39:53 +00:00
pooka 78f20aa8ef manpage 2010-12-13 19:36:34 +00:00
pooka dde3f793dc Also support ld syntax in -l.
was: -l librumpvfs.so
now: -lrumpvfs
2010-12-13 14:26:22 +00:00
pooka d3ab3ede2e Add -m which can be used to load modules (which is a completely
different code path than using dlopen() before rump_init(), since
the former uses the in-kernel linker and the latter links the object
in rtld).

So:
golem> ./rump_server -l librumpvfs.so -m /sys/modules/tmpfs/tmpfs.kmod unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
tmpfs            vfs        filesys    0     16713    -
wapbl            vfs        builtin    0     -        -

Source is filesys instead of builtin, as expected.

Notably, for -m you *must* use -l librumpvfs.so.  This is because
you need VFS in your kernel to be able to load modules from the
file system.  In a regular kernel "librumpvfs.so" is linked at
kernel build time and loaded by the bootloader.  Here we use dlopen()
for both effects (the other choices would have been to link
rump_server with -lrumpvfs, but that would limit the flexibility,
or link tmpfs.kmod directly into the binary, but that would limit
the flexibility even more).
2010-12-13 14:13:21 +00:00
pooka ac0678fe1e Handle -l which dlopens libs. This is more applicable to rump_server
than rump_allserver.

So if I do:

golem> rump_server unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -

and:

golem> rump_server -l librumpvfs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

golem> rump_server -l librumpvfs.so -l librumpfs_ffs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
ffs              vfs        builtin    0     -        -
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

Well, you get the picture...
2010-12-13 13:32:25 +00:00
pooka 4e63731664 lint hint to previous 2010-12-12 18:33:44 +00:00
pooka ae8a3e28c6 Reboot when killed (does cleanup). 2010-12-12 18:32:47 +00:00
pooka 6b9a77d4e0 use appropriate macro 2010-12-12 12:49:37 +00:00
pooka 126e32a17e Detach by default or -s to stay-on-top. 2010-12-11 10:44:55 +00:00
pooka ef4d7c2c36 rumpcrypto now comes as part of RUMPKERNLDADD 2010-12-05 20:12:55 +00:00