Skip to content

Rename crash conssistency #67

@OmSaran

Description

@OmSaran

There appears to be a bug in rename atomicity in SplitFS.

Occurs in the following sequence of operations:

  1. Create file1
  2. Create file2
  3. rename file1 -> file2

SplitFS does the following during recovery:

  1. Re-create file1 (since after rename file1 is lost)
  2. Do nothing since file2 exists
  3. Skip rename (step 3) since file2 exists.

End state of the filesystem leaves it in an inconsistent/non-atomic state where file1 and file2 exist after recovery while file2 only exists before recovery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions