null_vnops.c (35256) | null_vnops.c (36840) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)null_vnops.c 8.6 (Berkeley) 5/27/95 37 * 38 * Ancestors: 39 * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92 | 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 --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 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 * $Id: null_vnops.c,v 1.26 1998/01/31 07:23:13 eivind Exp $ | 40 * $Id: null_vnops.c,v 1.27 1998/04/17 22:36:54 des Exp $ |
41 * ...and... 42 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project 43 * | 41 * ...and... 42 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project 43 * |
44 * $Id: null_vnops.c,v 1.26 1998/01/31 07:23:13 eivind Exp $ | 44 * $Id: null_vnops.c,v 1.27 1998/04/17 22:36:54 des Exp $ |
45 */ 46 47/* 48 * Null Layer 49 * 50 * (See mount_null(8) for more information.) 51 * 52 * The null layer duplicates a portion of the file system --- 363 unchanged lines hidden (view full) --- 416 if (vap->va_size != VNOVAL) { 417 switch (vp->v_type) { 418 case VDIR: 419 return (EISDIR); 420 case VCHR: 421 case VBLK: 422 case VSOCK: 423 case VFIFO: | 45 */ 46 47/* 48 * Null Layer 49 * 50 * (See mount_null(8) for more information.) 51 * 52 * The null layer duplicates a portion of the file system --- 363 unchanged lines hidden (view full) --- 416 if (vap->va_size != VNOVAL) { 417 switch (vp->v_type) { 418 case VDIR: 419 return (EISDIR); 420 case VCHR: 421 case VBLK: 422 case VSOCK: 423 case VFIFO: |
424 if (vap->va_flags != VNOVAL) 425 return (EOPNOTSUPP); |
|
424 return (0); 425 case VREG: 426 case VLNK: 427 default: 428 /* 429 * Disallow write attempts if the filesystem is 430 * mounted read-only. 431 */ --- 236 unchanged lines hidden --- | 426 return (0); 427 case VREG: 428 case VLNK: 429 default: 430 /* 431 * Disallow write attempts if the filesystem is 432 * mounted read-only. 433 */ --- 236 unchanged lines hidden --- |