namjaejeon / ksmbd

ksmbd kernel server(SMB/CIFS server)
https://github.com/cifsd-team/ksmbd
273 stars 62 forks source link

btrfs subvolume invisible on macos #487

Open cyayon opened 2 weeks ago

cyayon commented 2 weeks ago

Hi,

All BTRFS subvolume are invisible on shares from the MacOS native smb client.

All other regulars files and directories are shown and accessible as expected.

Using another MacOS smb client (not native like Filebrowser) do not have the issue, it seems related to native MacOS smb/cifs client.

Mounting with the cli mount_smbfs have the same issue (Finder and terminal path).

Same issue with MacOS 14 (Sonoma) and 15 (Sequoia).

On Linux side, the last 6.10.10 have the issue (since a long time).

Steps to reproduce :

Thanks.

namjaejeon commented 1 week ago

Hm,, I am not familiar with btfs sub-volume. Can you provide me the two packet dump files using wireshark on problem situation ?

cyayon commented 1 week ago

Hi,

Here are the pcap files (I used tcpdump).

Thanks.

smb_macos_fb_OK.pcap.zip smb_macos_native_KO.pcap.zip

namjaejeon commented 1 week ago

Thanks for your help:) I have known MacOS client send request to look-up specific files(e.g. .DS_STORE, DCIM, etc.) that is not in your share. and ksmbd return no-such-file error to MacOS client. Can you test it with Native MacOS client and samba ? and if it is okay, Please give me wireshark dump.

Thanks!

cyayon commented 1 week ago

Hi,Sorry but I don’t have any samba install available.I would be a complicated task in my context.Is there something else that can I do to help ?Thanks On 20 Sep 2024, at 03:03, Namjae Jeon @.***> wrote: Thanks for your help:) I have known MacOS client send request to look-up specific files(e.g. .DS_STORE, DCIM, etc.) that is not in your share. and ksmbd return no-such-file error to MacOS client. Can you test it with Native MacOS client and samba ? and if it is okay, Please give me wireshark dump. Thanks!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

namjaejeon commented 1 week ago

Sorry for late response. Okay. I am confusing when checking packet dump (smb_macos_fb_OK.pcap.zip)

./toto_sub should be invisible on MacOS client

ksmbd return datas, 'monit', 'pkg', 'vm', 'users', 'services', 'logs' filename to client. there is no toto_sub filename in response buffer of ksmbd. You can see toto_sub file with Filebrowser() ?

cyayon commented 1 week ago

Hi, No problem. Yes toto_sub is a btrfs subvol and should be visible in MacOS native Finder (but it is not). It is visible in Filebrowser app (which is not native to MacOS).

'monit', 'pkg', 'vm', 'users', 'services', 'logs' are btrfs subvolumes. They are visible in Filebrowser app but NOT in MacOS client (which is an issue).

Only regular directories and files are visible in MacOS native Finder and it is definitely not normal.