Skip to content

May lost data when power off or crash? #309

@lancexin

Description

@lancexin

I just looked at the code and didn't run it. I'm just worried about whether data loss may occur in certain situations. I hope the author can provide an answer:

I saw that the write method in RingCryptoWrite is to first write to the buf. If the buf meets the block size requirement, the data in the buf will be encrypted and written to the disk. But if buf is not fully charged, this data is only temporarily stored in memory and not written to disk. If there is a power outage or program crash at this time, will this data be permanently lost?

Update from owner:
blocked by #48

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