Bo Brantén | 3 Jun 2010 21:26
Picon
Picon
Picon
Favicon

PATCH: Arla CVS Current on OpenBSD 4.3-4.7


Hello,

I have updated my patch for the latest release of OpenBSD. It would be 
good if anyone with CVS access could commit this.

Bo Brantén
diff -uprN arla-cvs/nnpfs/bsd/nnpfs/nnpfs_node.h arla-cvs-new/nnpfs/bsd/nnpfs/nnpfs_node.h
--- arla-cvs/nnpfs/bsd/nnpfs/nnpfs_node.h	2007-03-06 17:01:56.000000000 +0100
+++ arla-cvs-new/nnpfs/bsd/nnpfs/nnpfs_node.h	2010-06-03 22:45:15.000000000 +0200
 <at>  <at>  -113,7 +113,7  <at>  <at>  typedef struct lock nnpfs_vnode_lock;
 
 #else
 
-#if defined(__FreeBSD__) && __FreeBSD_version >= 600000
+#if (defined(__FreeBSD__) && __FreeBSD_version >= 600000 || defined(__OpenBSD__) && OpenBSD >= 200805)
 #define nnpfs_vrecycle(vp, foo, bar) vrecycle(vp, bar)
 #else
 #define nnpfs_vrecycle(vp, foo, bar) vrecycle(vp, foo, bar)
 <at>  <at>  -121,7 +121,11  <at>  <at>  typedef struct lock nnpfs_vnode_lock;
 
 #define nnpfs_vrele(vp) vrele(vp)
 #define nnpfs_vput(vp) vput(vp)
+#if (defined(__OpenBSD__) && OpenBSD >= 201005)
+#define nnpfs_vref(vp) vref(vp)
+#else
 #define nnpfs_vref(vp) VREF(vp)
+#endif
(Continue reading)

Tomas Olsson | 16 Jun 2010 22:28
Picon
Picon
Favicon

RE: PATCH: Arla CVS Current on OpenBSD 4.3-4.7

Bo Brantén writes:
> I have updated my patch for the latest release of OpenBSD. It would be
> good if anyone with CVS access could commit this.
>
I adapted it a bit (too much perhaps), now in CVS.
Please check that it still works as intended.

I'll try to get around to the latest Linux patch too.

Thanks
   /t

Gmane