David Howells 57e9d49c54 afs: Hide silly-rename files from userspace
There appears to be a race between silly-rename files being created/removed
and various userspace tools iterating over the contents of a directory,
leading to such errors as:

	find: './kernel/.tmp_cpio_dir/include/dt-bindings/reset/.__afs2080': No such file or directory
	tar: ./include/linux/greybus/.__afs3C95: File removed before we read it

when building a kernel.

Fix afs_readdir() so that it doesn't return .__afsXXXX silly-rename files
to userspace.  This doesn't stop them being looked up directly by name as
we need to be able to look them up from within the kernel as part of the
silly-rename algorithm.

Fixes: 79ddbfa500b3 ("afs: Implement sillyrename for unlink and rename")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
2024-01-22 22:29:48 +00:00
..
2023-12-24 15:22:53 +00:00
2024-01-19 09:10:23 -08:00
2024-01-19 09:10:23 -08:00
2023-01-11 06:52:43 -05:00
2024-01-01 16:37:27 +00:00
2024-01-01 16:37:27 +00:00
2024-01-19 09:10:23 -08:00
2024-01-19 09:10:23 -08:00
2023-12-24 15:22:53 +00:00
2022-06-29 08:51:06 -04:00
2024-01-01 16:37:27 +00:00
2024-01-19 09:10:23 -08:00
2024-01-01 16:37:27 +00:00
2024-01-19 09:10:23 -08:00