Skip to content

dataloss: mcedit save of existing file on full sshfs file system causes empty file #4166

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4166
Reporter baryluk (witold.baryluk@….com)

I don't how this happened, I am using 3:4.8.25-1 from Debian testing.

Never happened to me before in last 15 years.

I had sshfs filesystem mounted, and for external reasons (a background deamon) it got full.

I was editing a file, about 200 lines of code. I tried to save, and it failed. I exited, and reopened file again. It was empty. Few hours of work lost.

This is a critical flaw. There was no backup file, no atomic rename for save either.

Maybe it was something to do with mount options, I don't know.
sshfs -o cache_timeout=360 -o cache_stat_timeout=360 -o entry_timeout=240 -o negative_timeout=200 -o kernel_cache -o workaround=none -o cache_max_size=100000000 -o reconnect

But, mcedit recognized the error it can't save, so while the original data disappeared?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mceditmcedit, the built-in text editorprio: highSerious problem that could block progressver: 4.8.25Reproducible in version 4.8.25

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions