* Use is subject to license terms.
*/
/*
- * Copyright (c) 2011, 2012 Whamcloud, Inc.
+ * Copyright (c) 2012, Intel Corporation.
* Use is subject to license terms.
*/
/*
#define _DMU_H
#include <sys/zap.h>
-#include <sys/vnode.h>
#include <sys/mode.h>
#include <sys/sa.h>
typedef struct udmu_objset {
struct objset *os;
uint64_t root; /* id of root znode */
- cfs_spinlock_t lock; /* protects objects below */
+ spinlock_t lock; /* protects objects below */
uint64_t objects; /* in-core counter of objects */
/* SA attr mapping->id,
* name is the same as in ZFS to use defines SA_ZPL_...*/
uint64_t udmu_get_txg(udmu_objset_t *uos, dmu_tx_t *tx);
int udmu_blk_insert_cost(void);
-/* buf must have at least MAXNAMELEN bytes */
-void udmu_objset_name_get(udmu_objset_t *uos, char *buf);
-
-/* get/set ZFS user properties */
-int udmu_userprop_set_str(udmu_objset_t *uos, const char *prop_name,
- const char *val);
-int udmu_userprop_get_str(udmu_objset_t *uos, const char *prop_name, char *buf,
- size_t buf_size);
-
/* zap cursor apis */
int udmu_zap_cursor_init(zap_cursor_t **zc, udmu_objset_t *uos,
uint64_t zapobj, uint64_t hash);