-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3 duplicates of the file MEGAsync.cfg.bak in the same directory #498
Comments
Solution:
Perhaps you can investigate why these duplicates had appeared? |
Is there some other layer involved? Like FUSE or overlayfs. Creating a file on regular filesystem is not supposed to work, it's serialized, a bug possibility is always there but there's not enough data to analyze why. If you see this again, please save output of |
This duplicate of MEGA config file was in home directory in home subvolume that never uses other layer, e.g Overlayfs. Home subvolume and root subvolume are separated in the same btrfs filesystem. The root directory Only this MEGA config file happened only once. Rest all fine, no duplicate. I think that I first installed Linux Kernel 5.10 on my device using Btrfs, maybe it could cause this duplicate before upgrade many Linux Kernels ... to 5.18. |
In 5.14 there was a change that made duplicate dirents frequently during log tree replay, which was fixed in 5.16-rc1 (9a35fc9542fa btrfs: change error handling for btrfs_delete_*_in_log). The repro recipe is something like "do a lot of renames while the filesystem is busy flushing, then crash and run log tree replay on the next mount." Kernels before 5.14 could also produce duplicate dirents, but much less often. If the machine has been running 5.14 at any point, then this is almost certainly the cause. If it was running earlier kernels then it's less likely, but still possible. The duplicate entries can be removed by deleting all other entries in the directory, then removing the directory. |
If you want to know when it happened in the past It happened in Linux Kernel 5.10 Linux Kernel 5.10.36 |
I noticed there are 3 same file MEGAsync.cfg.bak, every file has the same checksum.
These duplicates were detected by
restic
backup processI deleted these duplicates, then restart of MEGAsync, but these same duplicates appear.
I deleted all BTRFS snapshots of home directory. That does not help, still 3 duplicates.
OS: Manjaro KDE (Latest version)
Linux Kernel: 5.18.15
Filesystem: Btrfs:
btrfs-progs v5.18.1
The text was updated successfully, but these errors were encountered: