def _parse_snapshots(data, filesystem):
 result = []
 for line in data.splitlines():
  (dataset, snapshot) = line.split('@', 1)
  if (dataset == filesystem.name):
   result.append(snapshot)
 return result

def _parse_snapshots ( data , filesystem ) : result = [ ] for line in data . splitlines ( ) : ( dataset , snapshot ) = line . split ( '@' , 1 ) if ( dataset == filesystem . name ) : result . append ( snapshot ) return result
parse the output of a zfs list command (like the one defined by _list_snapshots_command into a list of bytes .