ó i'dWc@s¾dZddlmZmZddlmZddlmZddlm Z ddl m Z ddl m Z ddlmZmZmZmZdd lmZd 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|ƒj|ƒt|_tjƒ|_|jj|_ t t j ƒ|_ ||_ dS(N(tsuperR t__init__tFalsetdry_runRt get_instancetengtdata_object_cachetdocRt DISCOVEREDtroott zone_name(tselftnameR((sdiscovery_zone.pyR0s  cCsdS(s\ Returns an estimate of the time this checkpoint will take to complete. i((R((sdiscovery_zone.pytget_progress_estimate=scCs6d#}tƒ}tdƒ}t|_t|_|jjjdt ƒ}|j j t ƒ}||ds"