ext2_inode.c (33134) | ext2_inode.c (34961) |
---|---|
1/* 2 * modified for 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 --- 95 unchanged lines hidden (view full) --- 104 return (0); 105 if (ip->i_flag & IN_ACCESS) 106 ip->i_atime = access->tv_sec; 107 if (ip->i_flag & IN_UPDATE) { 108 ip->i_mtime = modify->tv_sec; 109 ip->i_modrev++; 110 } 111 if (ip->i_flag & IN_CHANGE) { | 1/* 2 * modified for 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 --- 95 unchanged lines hidden (view full) --- 104 return (0); 105 if (ip->i_flag & IN_ACCESS) 106 ip->i_atime = access->tv_sec; 107 if (ip->i_flag & IN_UPDATE) { 108 ip->i_mtime = modify->tv_sec; 109 ip->i_modrev++; 110 } 111 if (ip->i_flag & IN_CHANGE) { |
112 ip->i_ctime = time.tv_sec; | 112 ip->i_ctime = time_second; |
113 } 114 ip->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE); 115 fs = ip->i_e2fs; 116 if (error = bread(ip->i_devvp, 117 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), 118 (int)fs->s_blocksize, NOCRED, &bp)) { 119 brelse(bp); 120 return (error); --- 45 unchanged lines hidden (view full) --- 166*/ /* 167 * negative file sizes will totally break the code below and 168 * are not meaningful anyways. 169 */ 170 if (length < 0) 171 return EFBIG; 172 173 oip = VTOI(ovp); | 113 } 114 ip->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE); 115 fs = ip->i_e2fs; 116 if (error = bread(ip->i_devvp, 117 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), 118 (int)fs->s_blocksize, NOCRED, &bp)) { 119 brelse(bp); 120 return (error); --- 45 unchanged lines hidden (view full) --- 166*/ /* 167 * negative file sizes will totally break the code below and 168 * are not meaningful anyways. 169 */ 170 if (length < 0) 171 return EFBIG; 172 173 oip = VTOI(ovp); |
174 gettime(&tv); | 174 getmicrotime(&tv); |
175 if (ovp->v_type == VLNK && 176 oip->i_size < ovp->v_mount->mnt_maxsymlinklen) { 177#if DIAGNOSTIC 178 if (length != 0) 179 panic("ext2_truncate: partial truncate of symlink"); 180#endif 181 bzero((char *)&oip->i_shortlink, (u_int)oip->i_size); 182 oip->i_size = 0; --- 328 unchanged lines hidden --- | 175 if (ovp->v_type == VLNK && 176 oip->i_size < ovp->v_mount->mnt_maxsymlinklen) { 177#if DIAGNOSTIC 178 if (length != 0) 179 panic("ext2_truncate: partial truncate of symlink"); 180#endif 181 bzero((char *)&oip->i_shortlink, (u_int)oip->i_size); 182 oip->i_size = 0; --- 328 unchanged lines hidden --- |