def _legacy_str_to_test_flags(fs_desc_string):
 match = re.search('(.*?)/(.*?)/(.*?)/(.*)$', fs_desc_string.strip())
 if (not match):
  raise ValueError(('unrecognized FS list entry %r' % fs_desc_string))
 flags_obj = partition.FsOptions(fstype=match.group(1).strip(), mkfs_flags=match.group(2).strip(), mount_options=match.group(3).strip(), fs_tag=match.group(4).strip())
 return flags_obj

def _legacy_str_to_test_flags ( fs_desc_string ) : match = re . search ( '(.*?)/(.*?)/(.*?)/(.*)$' , fs_desc_string . strip ( ) ) if ( not match ) : raise ValueError ( ( 'unrecognized FS list entry %r' % fs_desc_string ) ) flags_obj = partition . FsOptions ( fstype = match . group ( 1 ) . strip ( ) , mkfs_flags = match . group ( 2 ) . strip ( ) , mount_options = match . group ( 3 ) . strip ( ) , fs_tag = match . group ( 4 ) . strip ( ) ) return flags_obj
convert a legacy fs_list string into a partition .