1/* 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1982, 1986, 1989, 1993 --- 29 unchanged lines hidden (view full) --- 38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95 45 * @(#)ext2_vnops.c 8.7 (Berkeley) 2/3/94 |
46 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vnops.c 53131 1999-11-13 20:58:17Z eivind $ |
47 */ 48 49#include "opt_quota.h" 50#include "opt_suiddir.h" 51 52#include <sys/param.h> 53#include <sys/systm.h> 54#include <sys/resourcevar.h> --- 1003 unchanged lines hidden (view full) --- 1058 ip = VTOI(vp); 1059 bcopy(ap->a_target, (char *)ip->i_shortlink, len); 1060 ip->i_size = len; 1061 ip->i_flag |= IN_CHANGE | IN_UPDATE; 1062 } else 1063 error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0, 1064 UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0, 1065 (struct proc *)0); |
1066 if (error) 1067 vput(vp); |
1068 return (error); 1069} 1070 1071/* 1072 * Allocate a new inode. 1073 */ 1074static int 1075ext2_makeinode(mode, dvp, vpp, cnp) --- 149 unchanged lines hidden --- |