Lines Matching defs:type

89  * chunk size - space for type (1) - space for next pointer (2)
182 enum { DEVICE_LEAF, DEVICE_MIRROR, DEVICE_RAIDZ } type;
645 char *type;
647 type = grub_zfs_nvlist_lookup_string (nvlist, ZPOOL_CONFIG_TYPE);
648 grub_dprintf("zfs", "type = %s\n", type ? : "(null)");
650 if (!type)
655 grub_free (type);
661 grub_free (type);
665 if (grub_strcmp (type, VDEV_TYPE_DISK) == 0
666 || grub_strcmp (type, VDEV_TYPE_FILE) == 0)
669 fill->type = DEVICE_LEAF;
696 grub_free (type);
701 if (grub_strcmp (type, VDEV_TYPE_MIRROR) == 0
702 || grub_strcmp (type, VDEV_TYPE_RAIDZ) == 0)
706 if (grub_strcmp (type, VDEV_TYPE_MIRROR) == 0)
707 fill->type = DEVICE_MIRROR;
711 fill->type = DEVICE_RAIDZ;
714 grub_free (type);
720 grub_free (type);
731 grub_free (type);
752 grub_free(type);
764 grub_free (type);
768 grub_free (type);
772 grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, "vdev %s isn't supported", type);
773 grub_free (type);
990 grub_dprintf("zfs", "vdev_is_pool_member: type = %s\n",
991 (data->devices_attached[i].type == DEVICE_LEAF) ? "leaf" :
992 ((data->devices_attached[i].type == DEVICE_MIRROR) ? "mirror" : "unknown"));
994 if (data->devices_attached[i].type == DEVICE_LEAF)
1003 else if (data->devices_attached[i].type == DEVICE_MIRROR)
1359 data->devices_attached[0].type == DEVICE_MIRROR &&
1617 switch (desc->type)
1834 return grub_error (GRUB_ERR_BAD_FS, "unsupported device type");
2411 return grub_error (GRUB_ERR_BAD_FS, "invalid leaf type");
2681 return grub_error (GRUB_ERR_BAD_FS, "unknown ZAP type");
2727 return grub_error (GRUB_ERR_BAD_FS, "zap_value_search: unknown ZAP type");
2784 grub_error (GRUB_ERR_BAD_FS, "unknown ZAP type");
2825 grub_error (GRUB_ERR_BAD_FS, "unknown ZAP type");
2839 dnode_get (dnode_end_t * mdn, grub_uint64_t objnum, grub_uint8_t type,
2861 if (type && buf->dn.dn_type != type)
2862 return grub_error(GRUB_ERR_BAD_FS, "[1] incorrect dnode type: %d != %d\n", buf->dn.dn_type, type);
2893 if (type && buf->dn.dn_type != type)
2894 return grub_error(GRUB_ERR_BAD_FS, "[2] incorrect dnode type: %d != %d\n", buf->dn.dn_type, type);
3651 * data type (4 bytes)
3664 int name_len, type, encode_size;
3712 type = grub_be_to_cpu32 (grub_get_unaligned32 (nvpair));
3721 if ((grub_strncmp (nvp_name, name, name_len) == 0) && type == valtype)
3893 switch (desc->type)
4187 grub_dprintf("zfs", "zfs_fetch_nvlist failed: #devices=%d type=%d\n",
4188 zfs->n_devices_attached, zfs->devices_attached[0].type);
4341 return grub_error (GRUB_ERR_BAD_FS, "bad bonus type");
4633 grub_dprintf ("zfs", "type=%d, name=%s\n",