• Home
  • Raw
  • Download

Lines Matching refs:nvlist

1505 nvlist_find_value(char *nvlist, char *name, int valtype, char **val,  in nvlist_find_value()  argument
1514 if (nvlist[0] != NV_ENCODE_XDR || (nvlist[1] != NV_LITTLE_ENDIAN in nvlist_find_value()
1515 && nvlist[1] != NV_BIG_ENDIAN)) { in nvlist_find_value()
1521 nvlist = nvlist + 4 * 3; in nvlist_find_value()
1526 while ((encode_size = be32_to_cpu(*(uint32_t *) nvlist))) { in nvlist_find_value()
1529 nvpair = nvlist + 4 * 2; /* skip the encode/decode size */ in nvlist_find_value()
1556 nvlist += encode_size; /* goto the next nvpair */ in nvlist_find_value()
1562 zfs_nvlist_lookup_uint64(char *nvlist, char *name, uint64_t *out) in zfs_nvlist_lookup_uint64() argument
1568 found = nvlist_find_value(nvlist, name, DATA_TYPE_UINT64, &nvpair, &size, 0); in zfs_nvlist_lookup_uint64()
1581 zfs_nvlist_lookup_string(char *nvlist, char *name) in zfs_nvlist_lookup_string() argument
1589 found = nvlist_find_value(nvlist, name, DATA_TYPE_STRING, &nvpair, &size, 0); in zfs_nvlist_lookup_string()
1608 zfs_nvlist_lookup_nvlist(char *nvlist, char *name) in zfs_nvlist_lookup_nvlist() argument
1615 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair, in zfs_nvlist_lookup_nvlist()
1622 memcpy(ret, nvlist, sizeof(uint32_t)); in zfs_nvlist_lookup_nvlist()
1629 zfs_nvlist_lookup_nvlist_array_get_nelm(char *nvlist, char *name) in zfs_nvlist_lookup_nvlist_array_get_nelm() argument
1635 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair, in zfs_nvlist_lookup_nvlist_array_get_nelm()
1643 zfs_nvlist_lookup_nvlist_array(char *nvlist, char *name, in zfs_nvlist_lookup_nvlist_array() argument
1653 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair, in zfs_nvlist_lookup_nvlist_array()
1672 nvlist += encode_size; /* goto the next nvpair */ in zfs_nvlist_lookup_nvlist_array()
1674 nvlist = nvlist + 4 * 2; /* skip the ending 2 zeros - 8 bytes */ in zfs_nvlist_lookup_nvlist_array()
1688 memcpy(ret, nvlist, sizeof(uint32_t)); in zfs_nvlist_lookup_nvlist_array()
1695 int_zfs_fetch_nvlist(struct zfs_data *data, char **nvlist) in int_zfs_fetch_nvlist() argument
1699 *nvlist = malloc(VDEV_PHYS_SIZE); in int_zfs_fetch_nvlist()
1701 err = zfs_devread(data->vdev_phys_sector, 0, VDEV_PHYS_SIZE, *nvlist); in int_zfs_fetch_nvlist()
1703 free(*nvlist); in int_zfs_fetch_nvlist()
1704 *nvlist = 0; in int_zfs_fetch_nvlist()
1718 char *nvlist; /* for the pool */ in check_pool_label() local
1725 err = int_zfs_fetch_nvlist(data, &nvlist); in check_pool_label()
1729 found = zfs_nvlist_lookup_uint64(nvlist, ZPOOL_CONFIG_POOL_STATE, in check_pool_label()
1732 free(nvlist); in check_pool_label()
1738 free(nvlist); in check_pool_label()
1744 found = zfs_nvlist_lookup_uint64(nvlist, ZPOOL_CONFIG_POOL_TXG, in check_pool_label()
1747 free(nvlist); in check_pool_label()
1754 free(nvlist); in check_pool_label()
1759 found = zfs_nvlist_lookup_uint64(nvlist, ZPOOL_CONFIG_VERSION, in check_pool_label()
1762 free(nvlist); in check_pool_label()
1768 free(nvlist); in check_pool_label()
1775 vdevnvlist = zfs_nvlist_lookup_nvlist(nvlist, ZPOOL_CONFIG_VDEV_TREE); in check_pool_label()
1777 free(nvlist); in check_pool_label()
1786 free(nvlist); in check_pool_label()
1791 found = zfs_nvlist_lookup_uint64(nvlist, ZPOOL_CONFIG_GUID, &diskguid); in check_pool_label()
1793 free(nvlist); in check_pool_label()
1798 found = zfs_nvlist_lookup_uint64(nvlist, ZPOOL_CONFIG_POOL_GUID, &data->pool_guid); in check_pool_label()
1800 free(nvlist); in check_pool_label()
1805 free(nvlist); in check_pool_label()
1984 zfs_fetch_nvlist(device_t dev, char **nvlist) in zfs_fetch_nvlist() argument
1992 err = int_zfs_fetch_nvlist(zfs, nvlist); in zfs_fetch_nvlist()