Skip to content

Commit

Permalink
support kernfs as a file system type
Browse files Browse the repository at this point in the history
  • Loading branch information
anttikantee committed Jun 19, 2015
1 parent 60a4a60 commit d987fa7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/librumprun_base/rumpconfig.c
Expand Up @@ -325,13 +325,22 @@ mount_cd9660(const char *fstype, const char *dev, const char *mp)
errx(1, "rumprun_config: mount_cd9660 failed");
}

static void
mount_kernfs(const char *fstype, const char *dev, const char *mp)
{

if (mount(MOUNT_KERNFS, mp, 0, NULL, 0) == -1)
errx(1, "rumprun_config: mount_%s failed", fstype);
}

struct {
const char *mt_fstype;
void (*mt_mount)(const char *, const char *, const char *);
} mounters[] = {
{ "ffs", mount_ufs, },
{ "ext2fs", mount_ufs, },
{ "cd9660", mount_cd9660 },
{ "kernfs", mount_kernfs },
};

static int
Expand Down

0 comments on commit d987fa7

Please sign in to comment.