ext2_inode.c (105077) | ext2_inode.c (109623) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)ffs_inode.c 8.5 (Berkeley) 12/30/93 | 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 --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)ffs_inode.c 8.5 (Berkeley) 12/30/93 |
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_inode.c 105077 2002-10-14 03:20:36Z mckusick $ | 40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_inode.c 109623 2003-01-21 08:56:16Z alfred $ |
41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/mount.h> 46#include <sys/bio.h> 47#include <sys/buf.h> 48#include <sys/vnode.h> --- 360 unchanged lines hidden (view full) --- 409 } 410 if (error) { 411 brelse(bp); 412 *countp = 0; 413 return (error); 414 } 415 416 bap = (int32_t *)bp->b_data; | 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/mount.h> 46#include <sys/bio.h> 47#include <sys/buf.h> 48#include <sys/vnode.h> --- 360 unchanged lines hidden (view full) --- 409 } 410 if (error) { 411 brelse(bp); 412 *countp = 0; 413 return (error); 414 } 415 416 bap = (int32_t *)bp->b_data; |
417 MALLOC(copy, int32_t *, fs->s_blocksize, M_TEMP, M_WAITOK); | 417 MALLOC(copy, int32_t *, fs->s_blocksize, M_TEMP, 0); |
418 bcopy((caddr_t)bap, (caddr_t)copy, (u_int)fs->s_blocksize); 419 bzero((caddr_t)&bap[last + 1], 420 (u_int)(NINDIR(fs) - (last + 1)) * sizeof (int32_t)); 421 if (last == -1) 422 bp->b_flags |= B_INVAL; 423 error = bwrite(bp); 424 if (error) 425 allerror = error; --- 127 unchanged lines hidden --- | 418 bcopy((caddr_t)bap, (caddr_t)copy, (u_int)fs->s_blocksize); 419 bzero((caddr_t)&bap[last + 1], 420 (u_int)(NINDIR(fs) - (last + 1)) * sizeof (int32_t)); 421 if (last == -1) 422 bp->b_flags |= B_INVAL; 423 error = bwrite(bp); 424 if (error) 425 allerror = error; --- 127 unchanged lines hidden --- |