#NEWLINE# def _parse_snapshots( data , filesystem ) : #NEWLINE# #INDENT# '\n    Parse the output of a ``zfs list`` command (like the one defined by\n    ``_list_snapshots_command`` into a ``list`` of ``bytes`` (the snapshot\n    names only).\n\n    :param bytes data: The output to parse.\n\n    :param Filesystem filesystem: The filesystem from which to extract\n        snapshots.  If the output includes snapshots for other filesystems (eg\n        siblings or children) they are excluded from the result.\n\n    :return list: A ``list`` of ``bytes`` corresponding to the\n        names of the snapshots in the output.  The order of the list is the\n        same as the order of the snapshots in the data being parsed.\n    ' #NEWLINE# result = [ ] #NEWLINE# for line in data . splitlines ( ) : #NEWLINE# #INDENT# ( dataset , snapshot ) = line . split ( b'@' , 1 ) #NEWLINE# if ( dataset == filesystem . name ) : #NEWLINE# #INDENT# result . append ( snapshot ) #NEWLINE# #UNINDENT# #UNINDENT# return result