Re: [PATCH smb3-posix-extensions] FSA: allow rename over files with only POSIX opens

Ralph Boehme <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
Can you please create a MR on gitlab?

Thanks!

On 8/5/26 10:20 AM, ChenXiaoSong wrote:
> From: ChenXiaoSong <[email protected]>
> 
> Update FileRenameInformation processing for an existing destination.
> Ignore POSIX opens when checking whether the destination is open, so the
> rename can continue if all destination opens use POSIX semantics.
> 
> Keep returning STATUS_ACCESS_DENIED if the destination has one or more
> non-POSIX opens.
> 
> Signed-off-by: ChenXiaoSong <[email protected]>
> ---
>   fsa_posix_extensions.md | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
> 
> diff --git a/fsa_posix_extensions.md b/fsa_posix_extensions.md
> index e03102d..7dbdf77 100644
> --- a/fsa_posix_extensions.md
> +++ b/fsa_posix_extensions.md
> @@ -617,3 +617,18 @@ Open.GrantedAccess does not incluce FILE_WRITE_ATTRIBUTES and
>   not AccessCheck(SecurityContext, File.SecurityDescriptor, FILE_WRITE_ATTRIBUTES):
>   
>   - the operation MUST be failed with STATUS_CANNOT_DELETE.
> +
> +##### 2.1.4.8.3 FileRenameInformation
> +
> +When processing the following condition from MS-FSA 2.1.5.15.12:
> +
> +- If there was not an oplock to be broken and
> +  **TargetLink.File.OpenList** contains an **Open** with a **Stream**
> +  matching the current **Stream**, the operation MUST be failed with
> +  `STATUS_ACCESS_DENIED`.
> +
> +For this check, the object store MUST consider only matching opens for which
> +**Open.IsPosix** is FALSE. If one or more such opens exist, the operation
> +MUST be failed with `STATUS_ACCESS_DENIED`. If all matching opens have
> +**Open.IsPosix** set to TRUE, this check MUST NOT fail the operation and
> +processing MUST continue as specified in MS-FSA 2.1.5.15.12.
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEE+uLGCIokJSBRxVnkqh6bcSY5nkYFAmpy9I4FAwAAAAAACgkQqh6bcSY5nkZ+
jg//TDOanvt/A9gGTk0h7owEswwQHHG9OnM1Yor+j30JGs6PhCJorzncHlzBWEeG3acmhnmkBJwM
7e2t7CJadcEYxXd0/YQ70gUlJNLy30mzF+9D9JxdFky6MW+jqpS0k6WyREzjF3W9a9aCqM1jl7iD
8gQEME5dVGzSAY1eoV4nzlAt8g+M/ZPZyIIagcdwujAhCt2CCYaoGaon7DApD07yhbH5lrisQ1AV
T75XDWHRKoW0rWBRXQ2Bsx8FMgiUatvwaLJdWLvYyAmZ/Zvx7UvFL1zl/jcTgEevoPNCUlIAxy8d
sbGDvA3ep0S9jLuWWRQMnCtGTEblkQHYpFAEf5cvdDYNFnHQjDuHlWClAYToqk1J1x4XkC+Ct4KF
PL8ASCGAEsBhO4BD9hgUAqm/jc8m+RNdpmXBdCKd9G2asVcPx86M03sYUCSETEoDojVyGsnQkULi
r32fQ3JkY8V3/eYgNAdipYoVExrdfLqXEa3ZPoowz57oyayJ0W4ulULeuUhM3uWx2II8gcZiZIzo
GUfXo70FwgZWmKWHY9bqkZ42ruOm4VYoirCAG5GzyVk8kZPJExL0nwpajPE2LR/2MCaRAbsjF1aK
rIOst5e91/Tc1Ao+Dbz5OIHq9VmgYyAP25OMBYL20fd6/twq/iUupJ77oyRTvmK8P9+Gsvsq747i
bFw=
=rUNm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.