Home
last modified time | relevance | path

Searched refs:device_guid (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_label.c824 uint64_t state, pool_guid, device_guid, txg, spare_pool; in vdev_inuse() local
845 &device_guid) != 0) { in vdev_inuse()
867 !spa_guid_exists(pool_guid, device_guid) && in vdev_inuse()
868 !spa_spare_exists(device_guid, NULL, NULL) && in vdev_inuse()
869 !spa_l2cache_exists(device_guid, NULL)) in vdev_inuse()
888 if (spa_spare_exists(device_guid, &spare_pool, NULL) || in vdev_inuse()
889 spa_has_spare(spa, device_guid)) { in vdev_inuse()
891 *spare_guid = device_guid; in vdev_inuse()
899 return (!spa_has_spare(spa, device_guid) || in vdev_inuse()
903 return (spa_has_spare(spa, device_guid)); in vdev_inuse()
[all …]
H A Dspa_misc.c1444 spa_by_guid(uint64_t pool_guid, uint64_t device_guid) in spa_by_guid() argument
1457 if (device_guid == 0) in spa_by_guid()
1461 device_guid) != NULL) in spa_by_guid()
1469 device_guid) != NULL) in spa_by_guid()
1482 spa_guid_exists(uint64_t pool_guid, uint64_t device_guid) in spa_guid_exists() argument
1484 return (spa_by_guid(pool_guid, device_guid) != NULL); in spa_guid_exists()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h965 extern spa_t *spa_by_guid(uint64_t pool_guid, uint64_t device_guid);
966 extern boolean_t spa_guid_exists(uint64_t pool_guid, uint64_t device_guid);