Score:0

Sharing EFS with Samba - missing files

in flag

I'm trying to share AWS EFS content using Samba (to use it on Windows based instances). The issue is that with some number of files per folder, Samba doesn't show all of them. I tried different linux distros and also dockerized Samba version. Here's a way to reproduce the issue:

  1. Mount EFS:
sudo mkdir -p /efs
sudo mount -t nfs4 fs-xxx.efs.eu-central-1.amazonaws.com:/ /efs
  1. Create 1K empty files there:
sudo mkdir /efs/1k
for i in {1..1000}; do sudo touch /efs/1k/$i; done
  1. Create a Samba share:
cat /etc/samba/smb.conf
[efs]
path = /efs
browsable = yes
guest ok = yes
  1. Mount the share locally:
sudo mkdir -p /samba
sudo mount -t cifs -o guest //localhost/efs /samba
  1. Count files on EFS and the same files exposed by Samba
$ find /efs/1k -type f | wc -l
1000
$ find /samba/1k -type f | wc -l
172
imbolc avatar
in flag
I've just tried it on the last AWS linux (2023) and found the issue is still there
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.