[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cifs-protocol
Subject:    Re: [cifs-protocol] [EXTERNAL] Re: SET_REPARSE_POINT vs QUERY_DIRECTORY? - TrackingID#23010200400028
From:       Volker Lendecke via cifs-protocol <cifs-protocol () lists ! samba ! org>
Date:       2023-02-07 10:24:32
Message-ID: Y+Im4AbYtvfkNlkY () sernet ! de
[Download RAW message or body]

Hi Jeff,

thanks for the update. That's it pretty much.

Volker

Am Mon, Feb 06, 2023 at 06:21:03PM +0000 schrieb Jeff McCashland (He/him):
> Hi Volker,
> 
> We have updated [MS-FSA] for the next release to address this issue by adding the \
> following descriptive text: 
> 2.1.1.4 Per Link
> A Link structure connects a file name to a directory containing the file.  \
> Additionally, a Link duplicates certain information about the file (timestamps, \
> sizes, etc.), that can be used to satisfy directory query operations (see section \
> 2.1.5.6).  Note that for performance reasons an object store MAY delay updating a \
> Link's duplicated information following modifications to a file, resulting in \
> directory queries returning stale information.  Some file modifications require an \
> immediate update of the duplicated information, which will be noted in this \
> document by invoking the algorithm described in section 2.1.4.18. 
> 2.1.5.6.3 Directory Information Queries
> Directory queries return requested information about files contained in the \
> directory, based on the Link structures in Open.DirectoryList.  Note that for \
> performance reasons an object store MAY delay updating a Link's duplicated \
> information following modifications to a file, resulting in directory queries \
> returning stale information.  Some file modifications require an immediate update \
> of the duplicated information, which will be noted in this document by invoking the \
> algorithm described in section 2.1.4.18. 
> I hope that helps!
> Best regards,
> Jeff McCashland (He/him) | Senior Escalation Engineer | Microsoft Protocol Open \
>                 Specifications Team
> Phone: +1 (425) 703-8300 x38300 | Hours: 9am-5pm | Time zone: (UTC-08:00) Pacific \
> Time (US and Canada) Local country phone number found here: \
> http://support.microsoft.com/globalenglish<https://nam06.safelinks.protection.outloo \
> k.com/?url=http%3A%2F%2Fsupport.microsoft.com%2Fglobalenglish&data=02%7C01%7Cjeffm%4 \
> 0microsoft.com%7C92c4c7bb8c6d4412e78108d80d79f45f%7C72f988bf86f141af91ab2d7cd011db47 \
> %7C1%7C0%7C637274164726698458&sdata=KtEL7V58Q7rscYvr9cPik%2FmYKZIv0rh3E3kBdGywwwI%3D&reserved=0> \
> | Extension 1138300 
> 
> ________________________________
> From: Volker Lendecke <Volker.Lendecke@sernet.de>
> Sent: Monday, January 9, 2023 12:11 PM
> To: Jeff McCashland (He/him) <jeffm@microsoft.com>
> Cc: cifs-protocol@lists.samba.org <cifs-protocol@lists.samba.org>; Microsoft \
>                 Support <supportmail@microsoft.com>
> Subject: [EXTERNAL] Re: SET_REPARSE_POINT vs QUERY_DIRECTORY? - \
> TrackingID#2301020040002842 
> Am Mon, Jan 09, 2023 at 06:54:50PM +0000 schrieb Jeff McCashland (He/him):
> > QUERY_DIRECTORY results are read from the directory's duplicated
> > information. [MS-FSA] documents that duplicated information is
> > updated when the file handle is closed:
> > 
> > 2.1.5.5     Server Requests Closing an Open
> > §â€‚    Phase 3 - File Deletion:
> > §â€‚    If LinkDeleted is FALSE:
> > §â€‚    The object store MUST update the duplicated information as \
> > specified in section 2.1.4.18 with Link equal to Link. §â€‚    EndIf
> > 
> > However, duplicated information is not updated when SET_REPARSE_POINT is handled \
> > (section 2.1.5.10.37). 
> > Were you to immediately query the file state after setting the
> > reparse point, you would see the change. However, the change isn't
> > shown in directory queries until the duplicated information is
> > updated.
> 
> ... subtle stuff you find when really reading FSA. Thanks, I was not aware of this!
> 
> Volker

_______________________________________________
cifs-protocol mailing list
cifs-protocol@lists.samba.org
https://lists.samba.org/mailman/listinfo/cifs-protocol


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic