null_vnops.c (105077) | null_vnops.c (105211) |
---|---|
1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * John Heidemann of the UCLA Ficus project. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 26 unchanged lines hidden (view full) --- 35 * 36 * @(#)null_vnops.c 8.6 (Berkeley) 5/27/95 37 * 38 * Ancestors: 39 * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92 40 * ...and... 41 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project 42 * | 1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * John Heidemann of the UCLA Ficus project. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 26 unchanged lines hidden (view full) --- 35 * 36 * @(#)null_vnops.c 8.6 (Berkeley) 5/27/95 37 * 38 * Ancestors: 39 * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92 40 * ...and... 41 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project 42 * |
43 * $FreeBSD: head/sys/fs/nullfs/null_vnops.c 105077 2002-10-14 03:20:36Z mckusick $ | 43 * $FreeBSD: head/sys/fs/nullfs/null_vnops.c 105211 2002-10-16 08:00:32Z phk $ |
44 */ 45 46/* 47 * Null Layer 48 * 49 * (See mount_nullfs(8) for more information.) 50 * 51 * The null layer duplicates a portion of the filesystem --- 357 unchanged lines hidden (view full) --- 409 } 410 } 411 return (error); 412} 413 414/* 415 * Setattr call. Disallow write attempts if the layer is mounted read-only. 416 */ | 44 */ 45 46/* 47 * Null Layer 48 * 49 * (See mount_nullfs(8) for more information.) 50 * 51 * The null layer duplicates a portion of the filesystem --- 357 unchanged lines hidden (view full) --- 409 } 410 } 411 return (error); 412} 413 414/* 415 * Setattr call. Disallow write attempts if the layer is mounted read-only. 416 */ |
417int | 417static int |
418null_setattr(ap) 419 struct vop_setattr_args /* { 420 struct vnodeop_desc *a_desc; 421 struct vnode *a_vp; 422 struct vattr *a_vap; 423 struct ucred *a_cred; 424 struct thread *a_td; 425 } */ *ap; --- 437 unchanged lines hidden --- | 418null_setattr(ap) 419 struct vop_setattr_args /* { 420 struct vnodeop_desc *a_desc; 421 struct vnode *a_vp; 422 struct vattr *a_vap; 423 struct ucred *a_cred; 424 struct thread *a_td; 425 } */ *ap; --- 437 unchanged lines hidden --- |