Skip to content

Races on create when existing #103

Description

@smoser

A user of disko is creating devices in parallel and in some cases we hit a race where the creation of an LV fails due to already existing.

2 things disko could do:

  • nothing - creation should fail if you try to create a LV that already exists. (just as 'mkdir' fails if the entry exists). Here we should probably return a specific error to allow the caller to handle.
  • create, then if creation failed and the device did exist matching characteristics, return success.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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