Ñò i'dWc @s¾dZddklZlZddklZddklZddkl Z ddk l Z ddk l Z ddklZlZlZlZdd klZd Zd efd „ƒYZd S(sÇ discovery_zone.py - target discovery checkpoint. Attempts to find all LOGICAL target pools and datasets delegated to specific zone. The Data Object Cache is populated with the information. iÿÿÿÿ(tApplicationDatatrun(t InstallEngine(tAbstractCheckpoint(tTarget(tZFS(tALT_POOL_DATASET(t FilesystemtLogicaltZpooltZvol(tSizes/usr/sbin/zonecfgtTargetDiscoveryZonecBs5eZdZd„Zd„Zd„Zed„ZRS(sG Discover all logical devices on the system belonging to the zone. cCs\tt|ƒi|ƒt|_tiƒ|_|ii|_ t t i ƒ|_ ||_ dS(N(tsuperR t__init__tFalsetdry_runRt get_instancetengtdata_object_cachetdocRt DISCOVEREDtroott zone_name(tselftnameR((s../discovery_zone.pyR0s  cCsdS(s\ Returns an estimate of the time this checkpoint will take to complete. i((R((s../discovery_zone.pytget_progress_estimate=scCsPd#}tƒ}tdƒ}t|_t|_|iiidt ƒ}|i i t ƒ}||ds"