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 92727 2002-03-19 22:20:14Z alfred $
39 */
40
41/*
42 * Union Layer
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>
--- 5 unchanged lines hidden (view full) ---
52#include <sys/mount.h>
53#include <sys/namei.h>
54#include <sys/malloc.h>
55#include <sys/filedesc.h>
56#include <fs/unionfs/union.h>
57
58static MALLOC_DEFINE(M_UNIONFSMNT, "UNION mount", "UNION mount structure");
59
60extern int union_init(struct vfsconf *);
61static int union_mount(struct mount *mp, char *path, caddr_t data,
62 struct nameidata *ndp, struct thread *td);
63static int union_root(struct mount *mp, struct vnode **vpp);
64static int union_statfs(struct mount *mp, struct statfs *sbp,
65 struct thread *td);
66static int union_unmount(struct mount *mp, int mntflags,
67 struct thread *td);
68
69/*
70 * Mount union filesystem
71 */
72static int
73union_mount(mp, path, data, ndp, td)
74 struct mount *mp;
75 char *path;
--- 415 unchanged lines hidden ---
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 92727 2002-03-19 22:20:14Z alfred $
39 */
40
41/*
42 * Union Layer
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>
--- 5 unchanged lines hidden (view full) ---
52#include <sys/mount.h>
53#include <sys/namei.h>
54#include <sys/malloc.h>
55#include <sys/filedesc.h>
56#include <fs/unionfs/union.h>
57
58static MALLOC_DEFINE(M_UNIONFSMNT, "UNION mount", "UNION mount structure");
59
60extern int union_init(struct vfsconf *);
61static int union_mount(struct mount *mp, char *path, caddr_t data,
62 struct nameidata *ndp, struct thread *td);
63static int union_root(struct mount *mp, struct vnode **vpp);
64static int union_statfs(struct mount *mp, struct statfs *sbp,
65 struct thread *td);
66static int union_unmount(struct mount *mp, int mntflags,
67 struct thread *td);
68
69/*
70 * Mount union filesystem
71 */
72static int
73union_mount(mp, path, data, ndp, td)
74 struct mount *mp;
75 char *path;
--- 415 unchanged lines hidden ---