[Samba] msdfs root: can it contain regular files?

Jeremy Allison jra at samba.org
Wed Sep 13 16:28:08 UTC 2023

On Wed, Sep 13, 2023 at 07:19:38PM +0300, Michael Tokarev via samba wrote:
>13.09.2023 19:08, Jeremy Allison wrote:
>>On Wed, Sep 13, 2023 at 02:51:07PM +0300, Michael Tokarev via samba wrote:
>>>[2023/09/13 14:42:29.176777,  0] ../../source3/smbd/msdfs.c:170(parse_dfs_path)
>>> parse_dfs_path: can't parse hostname from path FOO
>>>[2023/09/13 14:42:29.176810,  0] ../../source3/smbd/msdfs.c:180(parse_dfs_path)
>>> parse_dfs_path: trying to convert FOO to a local path
>>>So I decided to ask more explicitly.  Is it okay to mix-n-match DFS reparse
>>>points and regular files/directories in a share where msdfs root is enabled?
>>What version of Samba ? This code changed for 4.19.x I think.
>This particular one is 4.17.  I had no idea there were changes in this
>area, but could have guessed since 4.19 had some reparse point changes.
>And sure thing, welcome
>commit c3f48b0581e5a948d1f31c8a65e8294aa6c92591
>Author: Jeremy Allison <jra at samba.org>
>Date:   Thu Mar 30 13:01:08 2023 -0700
>    s3: smbd: Remove now unused dfs_filename_convert().
>:)  - which went to 4.19.  Okay, I'll dig around the changes
>in that area.
>But the original question becomes even wider :)
>From the code changes I'm guessing it is okay to intermix regular
>dirs/files and DFS reparse points.  But it looks like some other
>reparse points are now supported too.. am I right?

Yes it should be OK to mix. No, other reparse points are
not supported yet. Volker is working hard on fixing this
but the preparotary work is still in process.

>The wiki page about DFS needs another update or two :)

No rest for the wiki.... :-).

More information about the samba mailing list