Changeset View
Changeset View
Standalone View
Standalone View
head/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 112 Lines • ▼ Show 20 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 |