def METHOD_NAME(self, record_identifier, start_date=0, end_date="auto"):
    logger.debug(
        "Extracting all records for record_identifier %s from filesystem persistent store", record_identifier
    )
    if f"{end_date}" == "auto":
        end_date = self.end_of_times
    record_list = []
    with open(record_identifier, "rb") as fp:
        if self.only_last_record_wanted(start_date, end_date):
            start_date = 0
            # A simple and unoptimized way to get penultimate line of the
            # file (given the last line is just a separator)
            try:
                fp.seek(-2, os.SEEK_END)
                while fp.read(1) != b"\n":
                    fp.seek(-2, os.SEEK_CUR)
                fp.seek(-2, os.SEEK_CUR)
                while fp.read(1) != b"\n":
                    fp.seek(-2, os.SEEK_CUR)
            except OSError:
                fp.seek(0)
        for _line in fp:
            if b"\n" + _line != self.line_sep:
                internal_timestamp, encoded_record_object = _line.split(self.ts_sep)
                decoded_record_object = self.record_deserialize(encoded_record_object)
                internal_timestamp = int(internal_timestamp)
                if start_date <= internal_timestamp <= end_date:
                    self.record_signature_check(decoded_record_object, record_identifier)
                    record_list.append(decoded_record_object)
    return record_list