If we get zero from commit_op_seq something is very wrong, and we should
not continue. Broken mkfs or something deleted commit_op_seq file.
Signed-off-by: Sage Weil <sage@inktank.com>
}
dout(5) << "mount op_seq is " << initial_op_seq << dendl;
+ if (initial_op_seq == 0) {
+ derr << "mount initial op seq is 0; something is wrong" << dendl;
+ ret = -EINVAL;
+ goto close_current_fd;
+ }
if (!btrfs_stable_commits) {
// mark current/ as non-snapshotted so that we don't rollback away