1/*	$NetBSD: efs_genfs.c,v 1.2 2018/05/28 21:04:37 chs Exp $	*/
2
3/*
4 * Copyright (c) 2006 Stephen M. Rumble <rumble@ephemeral.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#include <sys/cdefs.h>
20__KERNEL_RCSID(0, "$NetBSD: efs_genfs.c,v 1.2 2018/05/28 21:04:37 chs Exp $");
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/proc.h>
25#include <sys/kernel.h>
26#include <sys/vnode.h>
27
28#include <miscfs/genfs/genfs.h>
29#include <miscfs/genfs/genfs_node.h>
30
31#include <fs/efs/efs.h>
32#include <fs/efs/efs_sb.h>
33#include <fs/efs/efs_dir.h>
34#include <fs/efs/efs_genfs.h>
35#include <fs/efs/efs_mount.h>
36#include <fs/efs/efs_extent.h>
37#include <fs/efs/efs_dinode.h>
38#include <fs/efs/efs_inode.h>
39#include <fs/efs/efs_subr.h>
40
41const struct genfs_ops efs_genfsops = {
42	.gop_size  = genfs_size,
43	.gop_alloc = efs_gop_alloc,
44	.gop_write = genfs_gop_write,
45	.gop_putrange = genfs_gop_putrange,
46};
47
48int
49efs_gop_alloc(struct vnode *vp, off_t off, off_t len, int flags,
50    kauth_cred_t cred)
51{
52
53	return (0);
54}
55