‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, 10 March 2021 г., 20:15, Martin Raiber <[email protected]> 
wrote:

> Hi,
>
> I have this in a btrfs directory. Linux kernel 5.10.16, no errors in dmesg, 
> no scrub errors:
>
> ls -lh
> total 19G
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> -rwxr-x--- 1 root     root      783 Mar 10 14:56 disk_config.dat
> ...
>
> disk_config.dat gets written to using fsync rename ( write new version to 
> disk_config.dat.new, fsync disk_config.dat.new, then rename to 
> disk_config.dat -- it is missing the parent directory fsync).
>
> So far no negative consequences... (except that programs might get confused).
>
> echo 3 > /proc/sys/vm/drop_caches doesn't help.
>
> Regards,
> Martin Raiber

I can say that approx 1 month ago I also was surprised by having several files 
with duplicate names (listed by pcmanfm file manager and ls in console). In my 
case I had duplicates for several different files in one folder, not 10 copies 
of one file. I resolved the problem by renaming files and deleting duplicates. 
I decided not to report that issue because I thought I have unintentionally 
done something crazy. Btw, they likely occured also after power loss.

Regards,
Maxim Fomin

Reply via email to