arla 0.36.2 on FreeBSD current
Gernot Hueber
hueber at riic.at
Wed Jul 7 12:31:27 CEST 2004
Hello,
I have tried to compile arla-0.36.2 on FreeBSD-current (about 1 month
old). Unfortunately
I have run into several issues with nnpfs.ko. makedev problems have
been reported but
solutions did not work for me?!
vfsops for FreeBSD missed vop_nolock, vop_nounlock, and vop_noislocked,
I commented these
calls.
After these changes der KLD compiled but onload the kernel mentioned a
version issue with the KLD.
Adding the "d_version: D_VERSION" to cdevsw corrected that one, but
kldunload nnpfs crashed the
system?
Any clues?
Thanks for your help.
Regards
Gernot
Am 2004.07.07 12:20 schrieb(en) Gernot Hueber:
nnpfs/nnpfs_wrap.h:
#ifdef __FreeBSD__
#define makedev(x,y) ((dev_t)(((x) << 8) | (y)))
#endif
nnpfs_mount_common.c:
#ifdef HAVE_KERNEL_UDEV2DEV
/*#define VA_RDEV_TO_DEV(x) udev2dev(x, 0)*/ /* XXX what is the 0 */
#define VA_RDEV_TO_DEV(x) udev2dev(x)
#else
#define VA_RDEV_TO_DEV(x) x
#endif
--- nnpfs_dev-bsd.c
--- 37,43 ----
#include <nnpfs/nnpfs_fs.h>
#include <nnpfs/nnpfs_dev.h>
#include <nnpfs/nnpfs_deb.h>
+ #include <nnpfs/nnpfs_wrap.h>
nnpfs_dev-bsd.c:
*** 182,187 ****
--- 183,189 ----
#elif defined(__FreeBSD__)
struct cdevsw nnpfs_cdev = {
+ d_version: D_VERSION,
d_name: "nnpfs",
d_open: nnpfs_devopen,
d_close: nnpfs_devclose,
bash-2.05b$
nnpfs_vfsops-freebsd.c
*** 65,73 ****
{&vop_default_desc, (vop_t *) vop_defaultop},
{&vop_lookup_desc, (vop_t *) nnpfs_dead_lookup},
{&vop_reclaim_desc, (vop_t *) nnpfs_returnzero},
! {&vop_lock_desc, (vop_t *) vop_nolock},
{&vop_unlock_desc, (vop_t *) vop_nounlock},
! {&vop_islocked_desc,(vop_t *) vop_noislocked},
{NULL, NULL}};
static struct vnodeopv_desc nnpfs_dead_vnodeop_opv_desc =
--- 65,73 ----
{&vop_default_desc, (vop_t *) vop_defaultop},
{&vop_lookup_desc, (vop_t *) nnpfs_dead_lookup},
{&vop_reclaim_desc, (vop_t *) nnpfs_returnzero},
! /* {&vop_lock_desc, (vop_t *) vop_nolock},
{&vop_unlock_desc, (vop_t *) vop_nounlock},
! {&vop_islocked_desc,(vop_t *) vop_noislocked},*/
{NULL, NULL}};
static struct vnodeopv_desc nnpfs_dead_vnodeop_opv_desc =
More information about the Arla-drinkers
mailing list