Re-sending with right email... msdfs root is set to "no" by default and is per-share. [myshare] msdfs root = no path = ... Should do the trick. Otherwise if mounting on linux you can also use the 'nodfs' mount option (mount.cifs //host/share/... /mnt/ -o ...,nodfs) to disable DFS resolving and automatic sub-mounting. Chad W Seys <cwseys at physics.wisc.edu> writes:> Hi Aurélien, > Thanks! The mount option nodfs worked if I also used vers=1.0, but > otherwise msdfs resolving still occurred. (Looks like cifs uses a > higher smb version if vers=1.0 not specified.) I'll send an email to > the CIFS kernel mailing list.Yep, sounds like a bug indeed. You still have the option to edit the smb.conf on the server side if you want to use smb2+. -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
> Yep, sounds like a bug indeed. You still have the option to edit the smb.conf > on the server side if you want to use smb2+.Good to keep in mind. I'm speculating leaving 'nodfs' out of smb2+ was purposeful. Originally it was a workaround for Samba 3.something . Maybe the cifs authors were hoping to leave the legacy code behind? Thanks again for your suggestions! Chad.
Chad W Seys <cwseys at physics.wisc.edu> writes:>> Yep, sounds like a bug indeed. You still have the option to edit the smb.conf >> on the server side if you want to use smb2+. > > Good to keep in mind. > I'm speculating leaving 'nodfs' out of smb2+ was purposeful. Originally > it was a workaround for Samba 3.something . Maybe the cifs authors were > hoping to leave the legacy code behind?I added DFS support for smb2, and I did not forget nodfs on purpose :) I'll send a patch. Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Hi On Thu, Sep 20, 2018, 4:43 PM Aurélien Aptel via samba < samba at lists.samba.org> wrote:> Re-sending with right email... > > msdfs root is set to "no" by default and is per-share. > > [myshare] > msdfs root = no > path = ... > > Should do the trick. > > Otherwise if mounting on linux you can also use the 'nodfs' mount option > (mount.cifs //host/share/... /mnt/ -o ...,nodfs) to disable DFS > resolving and automatic sub-mounting. > > Chad W Seys <cwseys at physics.wisc.edu> writes: > > Hi Aurélien, > > Thanks! The mount option nodfs worked if I also used vers=1.0, but > > otherwise msdfs resolving still occurred. (Looks like cifs uses a > > higher smb version if vers=1.0 not specified.) I'll send an email to > > the CIFS kernel mailing list. > > Yep, sounds like a bug indeed. You still have the option to edit the > smb.conf > on the server side if you want to use smb2+. > > -- > Aurélien Aptel / SUSE Labs Samba Team > GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 > SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürn > <https://maps.google.com/?q=Linux+GmbH,+Maxfeldstra%C3%9Fe+5,+90409+N%C3%BCrn&entry=gmail&source=g>berg, > Germany > GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG > Nürnberg) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >