From: Martin Raiber <martin@urbackup.org>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Multiple files with the same name in one directory
Date: Wed, 10 Mar 2021 17:15:25 +0000 [thread overview]
Message-ID: <010201781d22d3e9-78ba2d74-fc45-4455-813d-367e789d3e9b-000000@eu-west-1.amazonses.com> (raw)
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
next reply other threads:[~2021-03-10 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-10 17:15 Martin Raiber [this message]
2021-03-11 14:43 ` Multiple files with the same name in one directory Filipe Manana
2021-03-11 18:05 ` Martin Raiber
2021-03-11 18:12 ` Filipe Manana
2021-03-12 4:02 ` Zygo Blaxell
2021-03-11 16:47 ` Maksim Fomin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010201781d22d3e9-78ba2d74-fc45-4455-813d-367e789d3e9b-000000@eu-west-1.amazonses.com \
--to=martin@urbackup.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).