1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
5 * Module that interacts with the ZFS DMU and provides an abstraction
6 * to the rest of Lustre.
8 * Copyright (c) 2007 Cluster File Systems, Inc.
9 * Author: Manoj Joseph <manoj.joseph@sun.com>
11 * This file is part of the Lustre file system, http://www.lustre.org
12 * Lustre is a trademark of Cluster File Systems, Inc.
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.
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.
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.
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);
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);
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);
48 int udmu_util_setattr(udmu_objset_t *uos, dmu_buf_t *db, vnattr_t *va);
50 int udmu_util_write(udmu_objset_t *uos, dmu_buf_t *db,
51 uint64_t offset, uint64_t len, void *buf);
59 #endif /* _DMU_UTIL_H */