vfs_extattr.c (5b42dac8ecd7876aea90b48dcd0f96c170672e42) | vfs_extattr.c (edfe736df916f9ca24d812ba13c52aed1fe8b4da) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 1128 unchanged lines hidden (view full) --- 1137 if (whiteout) { 1138 error = VOP_WHITEOUT(nd.ni_dvp, &nd.ni_cnd, CREATE); 1139 if (error) 1140 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); 1141 vput(nd.ni_dvp); 1142 } else { 1143 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, 1144 &nd.ni_cnd, &vattr); | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 1128 unchanged lines hidden (view full) --- 1137 if (whiteout) { 1138 error = VOP_WHITEOUT(nd.ni_dvp, &nd.ni_cnd, CREATE); 1139 if (error) 1140 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); 1141 vput(nd.ni_dvp); 1142 } else { 1143 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, 1144 &nd.ni_cnd, &vattr); |
1145 if (error == 0) { 1146 vput(nd.ni_vp); 1147 } |
|
1145 vput(nd.ni_dvp); 1146 } 1147 } else { 1148 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); 1149 if (nd.ni_dvp == vp) 1150 vrele(nd.ni_dvp); 1151 else 1152 vput(nd.ni_dvp); --- 39 unchanged lines hidden (view full) --- 1192 vrele(nd.ni_vp); 1193 return (EEXIST); 1194 } 1195 VATTR_NULL(&vattr); 1196 vattr.va_type = VFIFO; 1197 vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; 1198 VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); 1199 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); | 1148 vput(nd.ni_dvp); 1149 } 1150 } else { 1151 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); 1152 if (nd.ni_dvp == vp) 1153 vrele(nd.ni_dvp); 1154 else 1155 vput(nd.ni_dvp); --- 39 unchanged lines hidden (view full) --- 1195 vrele(nd.ni_vp); 1196 return (EEXIST); 1197 } 1198 VATTR_NULL(&vattr); 1199 vattr.va_type = VFIFO; 1200 vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; 1201 VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); 1202 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); |
1203 if (error == 0) { 1204 vput(nd.ni_vp); 1205 } |
|
1200 vput(nd.ni_dvp); 1201 return (error); 1202} 1203 1204/* 1205 * Make a hard file link. 1206 */ 1207#ifndef _SYS_SYSPROTO_H_ --- 2123 unchanged lines hidden --- | 1206 vput(nd.ni_dvp); 1207 return (error); 1208} 1209 1210/* 1211 * Make a hard file link. 1212 */ 1213#ifndef _SYS_SYSPROTO_H_ --- 2123 unchanged lines hidden --- |