Skip to content

lfs_fs_forceconsistency may not run upon file creation #1171

@amgross

Description

@amgross

Hi @geky ,
From what I see in code, lfs_fs_forceconsistency always run before operation that change the disk.
The only exception is when open is called on non-existing file with LFS_O_CREAT flag but without LFS_O_WRONLY (for example, if someone wants to create empty file).
Is it in purpose? (or bug that can corrupt the filesystem after powerdown...?)
Another interesting point is that attributes won't be written to file in this case, even after closing.

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