[cifs-protocol] Flags field in [MS-SMB2] 2.2.14 SMB2 CREATE Response? - TrackingID#2302140040008793

Volker Lendecke Volker.Lendecke at sernet.de
Sat Mar 25 09:51:58 UTC 2023


Hi Sreekanth,

thanks for finding that out. I am just wondering in what cases a
symlink will be followed on the server side. I had thought that
symlinks will always be opened client-side at least for SMB2+.

Volker

Am Fri, Mar 24, 2023 at 08:38:02PM +0000 schrieb Sreekanth Nadendla:
> Hi Volker, the flag SMB2_CREATE_FLAG_REPARSEPOINT is set only if
> reparse point is getting resolved on the server. Ultimately it boils
> down to what is being asked to open i.e. the underlying file that
> the symlink is pointing to or it’s definition which is the link file
> itself ( On windows, a filter driver reads it's contents so that the
> target file can be opened).
> 
> Suggested draft change to the spec is as shown below. We will review
> other sections and modify them so that the processing rule will be
> clear.
> 
> Section 2.2.14 SMB2 CREATE Response defines the flags field with SMB2_CREATE_FLAG_REPARSEPOINT (0x01). 
> . . . . . . . . . . . . . .. . . . . . . . . . . . . .   
> This MUST be used when the last component of a file opened is a reparse point, and create request Create Options does NOT contain FILE_OPEN_REPARSE_POINT.
> 
> 
> 
> Regards,
> Sreekanth Nadendla
> Microsoft Windows Open Specifications
> 
> -----Original Message-----
> From: Volker Lendecke <Volker.Lendecke at sernet.de> 
> Sent: Friday, March 3, 2023 2:56 AM
> To: Sreekanth Nadendla <srenaden at microsoft.com>
> Cc: cifs-protocol at lists.samba.org; Microsoft Support <supportmail at microsoft.com>
> Subject: Re: [EXTERNAL] Flags field in [MS-SMB2] 2.2.14 SMB2 CREATE Response? - TrackingID#2302140040008793
> 
> Hi Sreekanth,
> 
> Am Wed, Feb 22, 2023 at 06:36:33PM +0000 schrieb Sreekanth Nadendla:
> > Hi Volker, you can also use a windows 11 install as the SMB server.
> 
> apologies for the late response, but the result with Windows 11 is the same. This is a trace against
> 
> Edition Windows 11 Pro
> Version 21H2
> Installiert am  ‎12.‎10.‎2022
> Betriebssystembuild     22000.1641
> Leistung        Windows Feature Experience Pack 1000.22000.1641.0
> 
> as a server. In frame 22 you see FileAttributes a 0x420, which means ARCHIVE and REPARSE_POINT, but the Response Flags says it's not a reparse point.
> 
> Thanks,
> 
> Volker



More information about the cifs-protocol mailing list