udf_vnops.c (102170) | udf_vnops.c (103314) |
---|---|
1/*- 2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/fs/udf/udf_vnops.c 102170 2002-08-20 04:46:59Z scottl $ | 26 * $FreeBSD: head/sys/fs/udf/udf_vnops.c 103314 2002-09-14 09:02:28Z njl $ |
27 */ 28 29/* udf_vnops.c */ 30/* Take care of the vnode side of things */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/namei.h> --- 121 unchanged lines hidden (view full) --- 156} 157 158int 159udf_allocv(struct mount *mp, struct vnode **vpp, struct thread *td) 160{ 161 int error; 162 struct vnode *vp; 163 | 27 */ 28 29/* udf_vnops.c */ 30/* Take care of the vnode side of things */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/namei.h> --- 121 unchanged lines hidden (view full) --- 156} 157 158int 159udf_allocv(struct mount *mp, struct vnode **vpp, struct thread *td) 160{ 161 int error; 162 struct vnode *vp; 163 |
164 error = getnewvnode(VT_UDF, mp, udf_vnodeop_p, &vp); | 164 error = getnewvnode("udf", mp, udf_vnodeop_p, &vp); |
165 if (error) { 166 printf("udf_allocv: failed to allocate new vnode\n"); 167 return (error); 168 } 169 170 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); 171 *vpp = vp; 172 return (0); --- 1034 unchanged lines hidden --- | 165 if (error) { 166 printf("udf_allocv: failed to allocate new vnode\n"); 167 return (error); 168 } 169 170 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); 171 *vpp = vp; 172 return (0); --- 1034 unchanged lines hidden --- |