def prepare_fsdev(job):
 global FSDEV_JOB
 global FSDEV_DISKLIST
 global FSDEV_PREP_CNT
 if (not FSDEV_FS_DESC):
  return (None, None)
 FSDEV_PREP_CNT += 1
 if (FSDEV_PREP_CNT > 1):
  return (FSDEV_DISKLIST[0]['mountpt'], FSDEV_DISKLIST)
 FSDEV_JOB = job
 (path, toss, disks) = prepare_disks(job, fs_desc=FSDEV_FS_DESC, disk1_only=FSDEV_DISK1_ONLY, disk_list=None)
 FSDEV_DISKLIST = disks
 return (path, disks)

def prepare_fsdev ( job ) : global FSDEV_JOB global FSDEV_DISKLIST global FSDEV_PREP_CNT if ( not FSDEV_FS_DESC ) : return ( None , None ) FSDEV_PREP_CNT += 1 if ( FSDEV_PREP_CNT > 1 ) : return ( FSDEV_DISKLIST [ 0 ] [ 'mountpt' ] , FSDEV_DISKLIST ) FSDEV_JOB = job ( path , toss , disks ) = prepare_disks ( job , fs_desc = FSDEV_FS_DESC , disk1_only = FSDEV_DISK1_ONLY , disk_list = None ) FSDEV_DISKLIST = disks return ( path , disks )
called from the test file to get the necessary drive(s) ready; return a pair of values: the absolute path to the first drives mount point plus the complete disk list .