Commit Graph

69 Commits

Author SHA1 Message Date
pooka d0303b2f28 Return ENODEV instead of ENOENT if the file system is not available. 2008-11-24 05:54:39 +00:00
pooka 945e7d735e rump_vfs_load -> rump_module_load 2008-11-21 06:10:15 +00:00
pooka 9c035d43d1 dlerror() resets the error message, so save it since we want to
access it twice.
2008-11-21 06:07:23 +00:00
pooka 57f1031888 Use RUMP_VOP instead of prehistoric rump_vp. 2008-11-17 13:22:15 +00:00
pooka f455f7ee91 * use advisory file locks to avoid multiple mounts on the same device
(multiple rdonly mounts are still allowed)
* shuffle some assignments to avoid leaking resources in error branches
2008-11-07 00:18:33 +00:00
pooka 5877c6dc5e Embed library build version into the init call and refuse to init
if they don't match.  In other words, this is a lightweight library
major number.
2008-10-07 23:16:59 +00:00
pooka 10f58aee6b adapt to RUMPCRED_SUSER change 2008-09-30 19:26:23 +00:00
pooka d93a348b24 remove verbosity attack 2008-09-29 15:59:54 +00:00
pooka 24da753b34 fix type for a few functions 2008-09-07 15:14:31 +00:00
pooka 10b4d05961 Fix rump_vfs_sync() credarg also. 2008-08-14 15:24:18 +00:00
pooka 190154b4de Fix arg to RUMP_VOP_READDIR, NULL no longer works there. 2008-08-14 15:22:41 +00:00
pooka 44053cbe13 Avoid pid 0
XXX: pid allocation should not be done here.
2008-08-08 14:16:24 +00:00
pooka 541195ef5d Introduce ukfs_vfstypes() which returns the available file system
types loaded into rump.  Now it is possible to iterate over all
file system types supported by a rump program in an attempt to
access an unknown file system image instead of having to know
beforehand which type of file system is on the image.
2008-08-01 19:52:10 +00:00
pooka b6113580a4 __{BEGIN,END}_DECLS 2008-08-01 14:50:28 +00:00
pooka c19f1a2afd Support ukfs_modload(), which dlopens and vfs_attaches rump file
system modules for use.  Sneakily this solves the problem with the
dynamic linker not wanting to handle the modules link set for
binaries where more than one file system library is included during
the link phase and therefore only one of the file systems getting
vfs_attach()ed in rump "boot".  But more importantly, this is really
TRTTD, since now applications can be built, linked and shipped
completely independently of the file systems they support.

tested by Arnaud Ysmal
2008-08-01 14:47:28 +00:00
pooka e3c0c9ec57 No reason to forward def componentname anymore 2008-07-30 14:59:47 +00:00
pooka d2b954cb75 Include <sys/types.h> for completeness, uid_t etc. in prototypes
noticed by Arnaud Ysmal
2008-07-30 14:57:40 +00:00
pooka db96f8c4cc fix pasto 2008-07-29 21:11:17 +00:00
pooka bdf6e0b034 Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
  * install relevant headers into /usr/include/rump
  * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
    from src/lib and install as librumpuser and librump, respectively
    + this retains the ability to test a librump build with just the
      kernel sources at hand
  * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
    for general consumption, they are not kernel-space dwellers anyway
  * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
  * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
  * build and install userspace kernel file system daemons if MKPUFFS=yes
    is spexified
  * retire fsconsole for now, it will make a comeback with an actually
    implemented version shortly
2008-07-29 13:17:40 +00:00