Skip to content

Ability to close volume even if updating info block fails #207

@henryshunt

Description

@henryshunt

Files can be closed even if the included flush operation fails (it returns the encountered error after closing); directories can be closed without needing to access the card; but volume closure will immediately fail if either reading or writing the info block fails. This means that once a card has been physically removed, it is not possible to fully clear out the VolumeManager in preparation for mounting the same or a new card once reinserted.

This makes it impossible to handle card removal without destroying and creating a new VolumeManager, which for me has worked, but requires additional complexity that would not be necessary if I could simply close the volume.

We should have the ability to close the volume even if updating the info block fails. Looking at the spec, the info that is updated seems to be non-critical/advisory anyway. If the info block read fails, we could do what close_file does and return the error after closing (and the same with the info block write operation).

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