Remove stray stub kernel files which should be brought in my linux-kernel-module...
[zfs.git] / zfs / lib / libudmu / include / udmu_util.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  lustre/dmu/udmu.c
5  *  Module that interacts with the ZFS DMU and provides an abstraction
6  *  to the rest of Lustre.
7  *
8  *  Copyright (c) 2007 Cluster File Systems, Inc.
9  *   Author: Manoj Joseph <manoj.joseph@sun.com>
10  *
11  *   This file is part of the Lustre file system, http://www.lustre.org
12  *   Lustre is a trademark of Cluster File Systems, Inc.
13  *
14  *   You may have signed or agreed to another license before downloading
15  *   this software.  If so, you are bound by the terms and conditions
16  *   of that agreement, and the following does not apply to you.  See the
17  *   LICENSE file included with this distribution for more information.
18  *
19  *   If you did not agree to a different license, then this copy of Lustre
20  *   is open source software; you can redistribute it and/or modify it
21  *   under the terms of version 2 of the GNU General Public License as
22  *   published by the Free Software Foundation.
23  *
24  *   In either case, Lustre is distributed in the hope that it will be
25  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
26  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  *   license text for more details.
28  */
29
30 #ifndef _DMU_UTIL_H
31 #define _DMU_UTIL_H
32
33 #ifdef DMU_OSD
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 int udmu_util_lookup(udmu_objset_t *uos, dmu_buf_t *parent_db,
40                      const char *name, dmu_buf_t **new_dbp, void *tag);
41
42 int udmu_util_create(udmu_objset_t *uos, dmu_buf_t *parent_db,
43                      const char *name, dmu_buf_t **new_db, void *tag);
44
45 int udmu_util_mkdir(udmu_objset_t *uos, dmu_buf_t *parent_db,
46                     const char *name, dmu_buf_t **new_db, void *tag);
47
48 int udmu_util_setattr(udmu_objset_t *uos, dmu_buf_t *db, vnattr_t *va);
49
50 int udmu_util_write(udmu_objset_t *uos, dmu_buf_t *db,
51                     uint64_t offset, uint64_t len, void *buf);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* DMU_OSD */
58
59 #endif /* _DMU_UTIL_H */