Deleted Added
full compact
union_vfsops.c (109450) union_vfsops.c (109623)
1/*
2 * Copyright (c) 1994, 1995 The Regents of the University of California.
3 * Copyright (c) 1994, 1995 Jan-Simon Pendry.
4 * All rights reserved.
5 *
6 * This code is derived from software donated to Berkeley by
7 * Jan-Simon Pendry.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)union_vfsops.c 8.20 (Berkeley) 5/20/95
1/*
2 * Copyright (c) 1994, 1995 The Regents of the University of California.
3 * Copyright (c) 1994, 1995 Jan-Simon Pendry.
4 * All rights reserved.
5 *
6 * This code is derived from software donated to Berkeley by
7 * Jan-Simon Pendry.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)union_vfsops.c 8.20 (Berkeley) 5/20/95
38 * $FreeBSD: head/sys/fs/unionfs/union_vfsops.c 109450 2003-01-18 01:01:20Z tjr $
38 * $FreeBSD: head/sys/fs/unionfs/union_vfsops.c 109623 2003-01-21 08:56:16Z alfred $
39 */
40
41/*
42 * Union Layer
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

189 * The vnode references are stored in the union_mount as held,
190 * unlocked references. Depending on the _BELOW flag, the
191 * filesystems are viewed in a different order. In effect this
192 * is the same as providing a mount-under option to the mount
193 * syscall.
194 */
195
196 um = (struct union_mount *) malloc(sizeof(struct union_mount),
39 */
40
41/*
42 * Union Layer
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

189 * The vnode references are stored in the union_mount as held,
190 * unlocked references. Depending on the _BELOW flag, the
191 * filesystems are viewed in a different order. In effect this
192 * is the same as providing a mount-under option to the mount
193 * syscall.
194 */
195
196 um = (struct union_mount *) malloc(sizeof(struct union_mount),
197 M_UNIONFSMNT, M_WAITOK | M_ZERO);
197 M_UNIONFSMNT, M_ZERO);
198
199 um->um_op = op;
200
201 switch (um->um_op) {
202 case UNMNT_ABOVE:
203 um->um_lowervp = lowerrootvp;
204 um->um_uppervp = upperrootvp;
205 upperrootvp = NULL;

--- 311 unchanged lines hidden ---
198
199 um->um_op = op;
200
201 switch (um->um_op) {
202 case UNMNT_ABOVE:
203 um->um_lowervp = lowerrootvp;
204 um->um_uppervp = upperrootvp;
205 upperrootvp = NULL;

--- 311 unchanged lines hidden ---