Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Multiple files with the same name in one directory
@ 2021-03-10 17:15 Martin Raiber
  2021-03-11 14:43 ` Filipe Manana
  2021-03-11 16:47 ` Maksim Fomin
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Raiber @ 2021-03-10 17:15 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-12  4:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-10 17:15 Multiple files with the same name in one directory Martin Raiber
2021-03-11 14:43 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox