We use '--replay-ops' option to replay operations in the specified
operation log file, but we're not allowed to add comments for the
operations in the log, which might be useful when writing regression
tests that replay a given sequence of operations.
Now treat lines starting with '#' as comments and skip them when
reading operations.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
goto fail;
}
str = strtok(line, " \t\n");
- } while (!str);
+ } while (!str || str[0] == '#');
if (strcmp(str, "skip") == 0) {
log_entry->flags |= FL_SKIPPED;