Lines Matching refs:vdev_path
6823 if (strcmp(oldvd->vdev_path, newvd->vdev_path) == 0) {
6824 spa_strfree(oldvd->vdev_path);
6825 oldvd->vdev_path = kmem_alloc(strlen(newvd->vdev_path) + 5,
6827 (void) snprintf(oldvd->vdev_path, strlen(newvd->vdev_path) + 5,
6828 "%s/%s", newvd->vdev_path, "old");
6880 oldvdpath = spa_strdup(oldvd->vdev_path);
6881 newvdpath = spa_strdup(newvd->vdev_path);
7033 vd->vdev_path != NULL) {
7034 size_t len = strlen(vd->vdev_path);
7039 if (cvd == vd || cvd->vdev_path == NULL)
7042 if (strncmp(cvd->vdev_path, vd->vdev_path, len) == 0 &&
7043 strcmp(cvd->vdev_path + len, "/old") == 0) {
7044 spa_strfree(cvd->vdev_path);
7045 cvd->vdev_path = spa_strdup(vd->vdev_path);
7147 vdpath = spa_strdup(vd->vdev_path ? vd->vdev_path : "none");
7735 "vdev=%s", vml[c]->vdev_path);
7940 if (strcmp(value, vd->vdev_path) != 0) {
7941 spa_strfree(vd->vdev_path);
7942 vd->vdev_path = spa_strdup(value);