Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/zfs/zfsimpl.c
Show All 36 Lines | |||||
#include <sys/stdint.h> | #include <sys/stdint.h> | ||||
#include <sys/list.h> | #include <sys/list.h> | ||||
#include <sys/zfs_bootenv.h> | #include <sys/zfs_bootenv.h> | ||||
#include <machine/_inttypes.h> | #include <machine/_inttypes.h> | ||||
#include "zfsimpl.h" | #include "zfsimpl.h" | ||||
#include "zfssubr.c" | #include "zfssubr.c" | ||||
extern int zstd_init(void); | |||||
struct zfsmount { | struct zfsmount { | ||||
const spa_t *spa; | const spa_t *spa; | ||||
objset_phys_t objset; | objset_phys_t objset; | ||||
uint64_t rootobj; | uint64_t rootobj; | ||||
}; | }; | ||||
static struct zfsmount zfsmount __unused; | static struct zfsmount zfsmount __unused; | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static vdev_list_t zfs_vdevs; | static vdev_list_t zfs_vdevs; | ||||
/* | /* | ||||
* List of ZFS features supported for read | * List of ZFS features supported for read | ||||
*/ | */ | ||||
static const char *features_for_read[] = { | static const char *features_for_read[] = { | ||||
"org.illumos:lz4_compress", | "org.illumos:lz4_compress", | ||||
"org.freebsd:zstd_compress", | |||||
"com.delphix:hole_birth", | "com.delphix:hole_birth", | ||||
"com.delphix:extensible_dataset", | "com.delphix:extensible_dataset", | ||||
"com.delphix:embedded_data", | "com.delphix:embedded_data", | ||||
"org.open-zfs:large_blocks", | "org.open-zfs:large_blocks", | ||||
"org.illumos:sha512", | "org.illumos:sha512", | ||||
"org.illumos:skein", | "org.illumos:skein", | ||||
"org.zfsonlinux:large_dnode", | "org.zfsonlinux:large_dnode", | ||||
"com.joyent:multi_vdev_crash_dump", | "com.joyent:multi_vdev_crash_dump", | ||||
"com.delphix:spacemap_histogram", | "com.delphix:spacemap_histogram", | ||||
"com.delphix:zpool_checkpoint", | "com.delphix:zpool_checkpoint", | ||||
"com.delphix:spacemap_v2", | "com.delphix:spacemap_v2", | ||||
"com.datto:encryption", | "com.datto:encryption", | ||||
"org.zfsonlinux:allocation_classes", | "org.zfsonlinux:allocation_classes", | ||||
"com.datto:resilver_defer", | "com.datto:resilver_defer", | ||||
"com.delphix:device_removal", | "com.delphix:device_removal", | ||||
"com.delphix:obsolete_counts", | "com.delphix:obsolete_counts", | ||||
"com.intel:allocation_classes", | "com.intel:allocation_classes", | ||||
"org.freebsd:zstd_compress", | "org.freebsd:zstd_compress", | ||||
mmacy: Remove this one if you're going to move it up. | |||||
Done Inline Actionsnah, it was added independently of me, so I'll just delete the one I'm adding. imp: nah, it was added independently of me, so I'll just delete the one I'm adding. | |||||
NULL | NULL | ||||
}; | }; | ||||
/* | /* | ||||
* List of all pools, chained through spa_link. | * List of all pools, chained through spa_link. | ||||
*/ | */ | ||||
static spa_list_t zfs_pools; | static spa_list_t zfs_pools; | ||||
Show All 24 Lines | |||||
zfs_init(void) | zfs_init(void) | ||||
{ | { | ||||
STAILQ_INIT(&zfs_vdevs); | STAILQ_INIT(&zfs_vdevs); | ||||
STAILQ_INIT(&zfs_pools); | STAILQ_INIT(&zfs_pools); | ||||
dnode_cache_buf = malloc(SPA_MAXBLOCKSIZE); | dnode_cache_buf = malloc(SPA_MAXBLOCKSIZE); | ||||
zfs_init_crc(); | zfs_init_crc(); | ||||
zstd_init(); | |||||
} | } | ||||
static int | static int | ||||
nvlist_check_features_for_read(nvlist_t *nvl) | nvlist_check_features_for_read(nvlist_t *nvl) | ||||
{ | { | ||||
nvlist_t *features = NULL; | nvlist_t *features = NULL; | ||||
nvs_data_t *data; | nvs_data_t *data; | ||||
nvp_header_t *nvp; | nvp_header_t *nvp; | ||||
▲ Show 20 Lines • Show All 3,601 Lines • Show Last 20 Lines |
Remove this one if you're going to move it up.