Make rump compile UDF correctly. Note that it won't work though since rump

needs to be compiled with thread support.
This commit is contained in:
reinoud 2008-05-14 20:13:05 +00:00
parent 880d196c7a
commit 5d5fb047a1
4 changed files with 19 additions and 7 deletions

View File

@ -1,8 +1,11 @@
# $NetBSD: Makefile,v 1.1 2007/08/14 13:56:59 pooka Exp $
# $NetBSD: Makefile,v 1.2 2008/05/14 20:13:05 reinoud Exp $
#
PROG= udf
COPTS+= -DUDF_READWRITE -DDEBUG -DDIAGNOSTIC
RUMPFSLD_UDF= -Wl,--whole-archive -lrump -Wl,--no-whole-archive
LDADD+= ${RUMPFSLD_UDF}
DPADD+= ${RUMPFSDP_UDF}

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf.c,v 1.2 2007/08/14 15:56:16 pooka Exp $ */
/* $NetBSD: udf.c,v 1.3 2008/05/14 20:13:05 reinoud Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -79,7 +79,7 @@ main(int argc, char *argv[])
args.version = UDFMNT_VERSION;
args.fspec = argv[0];
rv = p2k_run_fs(MOUNT_UDF, argv[0], argv[1], mntflags | MNT_RDONLY,
rv = p2k_run_fs(MOUNT_UDF, argv[0], argv[1], mntflags,
&args, sizeof(args), pflags);
if (rv)
err(1, "mount");

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2007/08/14 13:56:58 pooka Exp $
# $NetBSD: Makefile,v 1.2 2008/05/14 20:13:05 reinoud Exp $
#
.include <bsd.own.mk>
@ -7,9 +7,11 @@ LIB= udf
.PATH: ${NETBSDSRCDIR}/sys/fs/udf
SRCS= udf_osta.c udf_subr.c udf_vfsops.c udf_vnops.c
SRCS= udf_osta.c udf_vfsops.c udf_vnops.c udf_subr.c \
udf_allocation.c udf_readwrite.c udf_strat_bootstrap.c \
udf_strat_direct.c udf_strat_sequential.c udf_strat_rmw.c
CFLAGS+= -Wno-pointer-sign
CFLAGS+= -Wno-pointer-sign -DUDF_READWRITE -DDEBUG -DDIAGNOSTIC
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: genfs_io.c,v 1.8 2008/01/02 15:44:03 pooka Exp $ */
/* $NetBSD: genfs_io.c,v 1.9 2008/05/14 20:13:05 reinoud Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -441,3 +441,10 @@ genfs_gop_write(struct vnode *vp, struct vm_page **pgs, int npages, int flags)
panic("%s: not implemented", __func__);
}
int
genfs_gop_write_rwmap(struct vnode *vp, struct vm_page **pgs, int npages, int flags)
{
panic("%s: not implemented", __func__);
}