equal
deleted
inserted
replaced
33 |
33 |
34 #ifdef __cplusplus |
34 #ifdef __cplusplus |
35 extern "C" { |
35 extern "C" { |
36 #endif |
36 #endif |
37 |
37 |
38 typedef struct zvol_stats { |
|
39 uint64_t zv_volsize; |
|
40 uint64_t zv_volblocksize; |
|
41 } zvol_stats_t; |
|
42 |
|
43 #ifdef _KERNEL |
38 #ifdef _KERNEL |
44 extern int zvol_check_volsize(uint64_t volsize, uint64_t blocksize); |
39 extern int zvol_check_volsize(uint64_t volsize, uint64_t blocksize); |
45 extern int zvol_check_volblocksize(uint64_t volblocksize); |
40 extern int zvol_check_volblocksize(uint64_t volblocksize); |
46 extern int zvol_get_stats(objset_t *os, zvol_stats_t *zvs); |
41 extern int zvol_get_stats(objset_t *os, nvlist_t *nv); |
47 extern void zvol_create_cb(objset_t *os, void *arg, dmu_tx_t *tx); |
42 extern void zvol_create_cb(objset_t *os, void *arg, dmu_tx_t *tx); |
48 extern int zvol_create_minor(const char *, dev_t); |
43 extern int zvol_create_minor(const char *, dev_t); |
49 extern int zvol_remove_minor(const char *); |
44 extern int zvol_remove_minor(const char *); |
50 extern int zvol_set_volsize(const char *, dev_t, uint64_t); |
45 extern int zvol_set_volsize(const char *, dev_t, uint64_t); |
51 extern int zvol_set_volblocksize(const char *, uint64_t); |
46 extern int zvol_set_volblocksize(const char *, uint64_t); |