ext2_vnops.c (c7aa572cacdeca83c35c12a378909d0b659300a9) ext2_vnops.c (d292b1940c9cc327810627c486cbcfa7e12ce8ad)
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 * SPDX-License-Identifier: BSD-3-Clause

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

343 }
344 }
345
346 /* If immutable bit set, nobody gets to write it. */
347 if ((accmode & VWRITE) && (ip->i_flags & (SF_IMMUTABLE | SF_SNAPSHOT)))
348 return (EPERM);
349
350 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid,
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 * SPDX-License-Identifier: BSD-3-Clause

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

343 }
344 }
345
346 /* If immutable bit set, nobody gets to write it. */
347 if ((accmode & VWRITE) && (ip->i_flags & (SF_IMMUTABLE | SF_SNAPSHOT)))
348 return (EPERM);
349
350 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid,
351 ap->a_accmode, ap->a_cred, NULL);
351 ap->a_accmode, ap->a_cred);
352 return (error);
353}
354
355static int
356ext2_getattr(struct vop_getattr_args *ap)
357{
358 struct vnode *vp = ap->a_vp;
359 struct inode *ip = VTOI(vp);

--- 1996 unchanged lines hidden ---
352 return (error);
353}
354
355static int
356ext2_getattr(struct vop_getattr_args *ap)
357{
358 struct vnode *vp = ap->a_vp;
359 struct inode *ip = VTOI(vp);

--- 1996 unchanged lines hidden ---