diff options
author | Assar Westerlund <assar@FreeBSD.org> | 2002-01-07 04:47:11 +0000 |
---|---|---|
committer | Assar Westerlund <assar@FreeBSD.org> | 2002-01-07 04:47:11 +0000 |
commit | 46b4ae309ca1e72a8b4d523e9e5c8d43a50db790 (patch) | |
tree | 6bd83d1c12a479a8507e83f30ed72350226bef8b /net/arla | |
parent | dade9e1891a3258b98c6a5dbc083eb4396650463 (diff) | |
download | ports-46b4ae309ca1e72a8b4d523e9e5c8d43a50db790.tar.gz ports-46b4ae309ca1e72a8b4d523e9e5c8d43a50db790.zip |
Notes
Diffstat (limited to 'net/arla')
-rw-r--r-- | net/arla/Makefile | 3 | ||||
-rw-r--r-- | net/arla/distinfo | 1 | ||||
-rw-r--r-- | net/arla/files/patch-ab | 73 | ||||
-rw-r--r-- | net/arla/files/patch-ac | 31 | ||||
-rw-r--r-- | net/arla/files/patch-ad | 32 |
5 files changed, 65 insertions, 75 deletions
diff --git a/net/arla/Makefile b/net/arla/Makefile index 8e9b3893117c..63a9bf78177b 100644 --- a/net/arla/Makefile +++ b/net/arla/Makefile @@ -6,8 +6,7 @@ # PORTNAME= arla -PORTVERSION= 0.35.5 -PORTREVISION= 2 +PORTVERSION= 0.35.6 CATEGORIES= net MASTER_SITES= ftp://ftp.stacken.kth.se/pub/arla/ diff --git a/net/arla/distinfo b/net/arla/distinfo index ec1808242434..7e86db994d1c 100644 --- a/net/arla/distinfo +++ b/net/arla/distinfo @@ -1 +1,2 @@ MD5 (arla-0.35.5.tar.gz) = 499a415c9ae6639c378288332c59d0b7 +MD5 (arla-0.35.6.tar.gz) = 42dbf03c908faf72ae38dfb3cfdffe53 diff --git a/net/arla/files/patch-ab b/net/arla/files/patch-ab deleted file mode 100644 index c378fcceab4a..000000000000 --- a/net/arla/files/patch-ab +++ /dev/null @@ -1,73 +0,0 @@ -Index: xfs/bsd/xfs_node-bsd.c -=================================================================== -RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_node-bsd.c,v -retrieving revision 1.54 -retrieving revision 1.55 -diff -u -w -u -w -r1.54 -r1.55 ---- xfs/bsd/xfs_node-bsd.c 2001/03/14 23:04:43 1.54 -+++ xfs/bsd/xfs_node-bsd.c 2001/09/03 21:16:50 1.55 -@@ -171,6 +171,20 @@ - XFSDEB(XDEBNODE, ("free_xfs_node done\n")); - } - -+/* -+ * FreeBSD 4.4 and newer changed to API to vflush around June 2001 -+ */ -+ -+static int -+xfs_vflush(struct mount *mp, int flags) -+{ -+#if __FreeBSD__ && __FreeBSD_version > 430000 -+ return vflush(mp, 0, flags); -+#else -+ return vflush(mp, NULL, flags); -+#endif -+} -+ - int - free_all_xfs_nodes(struct xfs *xfsp, int flags, int unmountp) - { -@@ -190,21 +204,36 @@ - XFSDEB(XDEBNODE, ("free_all_xfs_nodes now removing root\n")); - - vgone(XNODE_TO_VNODE(xfsp->root)); -- xfsp->root = 0; -+ xfsp->root = NULL; - } - - XFSDEB(XDEBNODE, ("free_all_xfs_nodes root removed\n")); - XFSDEB(XDEBNODE, ("free_all_xfs_nodes now killing all remaining nodes\n")); - -+ /* -+ * If we have a syncer vnode, release it (to emulate dounmount) -+ * and the create it again when if we are going to need it. -+ */ -+ - #ifdef HAVE_STRUCT_MOUNT_MNT_SYNCER - if (!unmountp) { -- XFSDEB(XDEBNODE, ("free_all_xfs_nodes not flushing syncer vnode\n")); -- error = vflush(mp, mp->mnt_syncer, flags); -- } else -+ if (mp->mnt_syncer != NULL) { -+ vrele(mp->mnt_syncer); -+ mp->mnt_syncer = NULL; -+ } -+ } - #endif -- { -- error = vflush(mp, NULL, flags); -+ error = xfs_vflush(mp, flags); -+#ifdef HAVE_STRUCT_MOUNT_MNT_SYNCER -+ if (!unmountp) { -+ XFSDEB(XDEBNODE, ("free_all_xfs_nodes not flushing syncer vnode\n")); -+ if (mp->mnt_syncer == NULL) -+ if (vfs_allocate_syncvnode(mp)) { -+ panic("failed to allocate syncer node when xfs daemon died"); -+ - } -+ } -+#endif - - if (error) { - XFSDEB(XDEBNODE, ("xfree_all_xfs_nodes: vflush() error == %d\n", - diff --git a/net/arla/files/patch-ac b/net/arla/files/patch-ac new file mode 100644 index 000000000000..f7b804a4b06c --- /dev/null +++ b/net/arla/files/patch-ac @@ -0,0 +1,31 @@ +Index: xfs/bsd/xfs_message.c +=================================================================== +RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_message.c,v +retrieving revision 1.64.2.3 +diff -u -w -r1.64.2.3 xfs_message.c +--- xfs/bsd/xfs_message.c 2001/10/19 04:29:31 1.64.2.3 ++++ xfs/bsd/xfs_message.c 2002/01/07 04:28:29 +@@ -473,6 +473,15 @@ + /* XXX see comment in xfs_node_find */ + /* XXXSMP do gone[l] need to get mntvnode_slock ? */ + ++#if __FreeBSD_version >= 440002 ++ for(vp = TAILQ_FIRST(&XFS_TO_VFS(&xfs[fd])->mnt_nvnodelist); ++ vp != NULL; ++ vp = next) { ++ ++ next = TAILQ_NEXT(vp, v_nmntvnodes); ++ gc_vnode (vp, p); ++ } ++#else + for(vp = XFS_TO_VFS(&xfs[fd])->mnt_vnodelist.lh_first; + vp != NULL; + vp = next) { +@@ -480,6 +489,7 @@ + next = vp->v_mntvnodes.le_next; + gc_vnode (vp, p); + } ++#endif + } else { + struct xfs_node *t; + int i; diff --git a/net/arla/files/patch-ad b/net/arla/files/patch-ad new file mode 100644 index 000000000000..f97c4eaaee57 --- /dev/null +++ b/net/arla/files/patch-ad @@ -0,0 +1,32 @@ +Index: xfs/bsd/xfs_node-bsd.c +=================================================================== +RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_node-bsd.c,v +retrieving revision 1.47.2.4 +diff -u -w -r1.47.2.4 xfs_node-bsd.c +--- xfs/bsd/xfs_node-bsd.c 2001/09/17 01:57:20 1.47.2.4 ++++ xfs/bsd/xfs_node-bsd.c 2002/01/07 04:31:03 +@@ -272,6 +272,15 @@ + * on FreeBSD once. + */ + ++#if __FreeBSD_version >= 440002 ++ for(t = TAILQ_FIRST(&XFS_TO_VFS(xfsp)->mnt_nvnodelist); ++ t != NULL; ++ t = TAILQ_NEXT(t, v_nmntvnodes)) { ++ xn = VNODE_TO_XNODE(t); ++ if (xn && xfs_handle_eq(&xn->handle, handlep)) ++ break; ++ } ++#else + for(t = XFS_TO_VFS(xfsp)->mnt_vnodelist.lh_first; + t != NULL; + t = t->v_mntvnodes.le_next) { +@@ -279,7 +288,7 @@ + if (xn && xfs_handle_eq(&xn->handle, handlep)) + break; + } +- ++#endif + if (t != NULL) + return xn; + else |