Deleted Added
full compact
ext2_alloc.c (47099) ext2_alloc.c (50253)
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

--- 99 unchanged lines hidden (view full) ---

108#if QUOTA
109 int error;
110#endif
111
112 *bnp = 0;
113 fs = ip->i_e2fs;
114#if DIAGNOSTIC
115 if ((u_int)size > fs->s_blocksize || blkoff(fs, size) != 0) {
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

--- 99 unchanged lines hidden (view full) ---

108#if QUOTA
109 int error;
110#endif
111
112 *bnp = 0;
113 fs = ip->i_e2fs;
114#if DIAGNOSTIC
115 if ((u_int)size > fs->s_blocksize || blkoff(fs, size) != 0) {
116 printf("dev = 0x%lx, bsize = %lu, size = %d, fs = %s\n",
117 (u_long)ip->i_dev, fs->s_blocksize, size, fs->fs_fsmnt);
116 printf("dev = %s, bsize = %lu, size = %d, fs = %s\n",
117 devtoname(ip->i_dev), fs->s_blocksize, size, fs->fs_fsmnt);
118 panic("ext2_alloc: bad size");
119 }
120 if (cred == NOCRED)
121 panic("ext2_alloc: missing credential");
122#endif /* DIAGNOSTIC */
123 if (size == fs->s_blocksize && fs->s_es->s_free_blocks_count == 0)
124 goto nospace;
125 if (cred->cr_uid != 0 &&

--- 429 unchanged lines hidden ---
118 panic("ext2_alloc: bad size");
119 }
120 if (cred == NOCRED)
121 panic("ext2_alloc: missing credential");
122#endif /* DIAGNOSTIC */
123 if (size == fs->s_blocksize && fs->s_es->s_free_blocks_count == 0)
124 goto nospace;
125 if (cred->cr_uid != 0 &&

--- 429 unchanged lines hidden ---