* new SMB3.1.1 create contexts
@ 2022-10-01 23:50 Steve French
2022-10-02 4:01 ` Steve French
0 siblings, 1 reply; 3+ messages in thread
From: Steve French @ 2022-10-01 23:50 UTC (permalink / raw)
To: samba-technical, CIFS
Noticed a few SMB3.1.1 create contexts missing from the Linux kernel
code. Any more beyond these four that are still missing?
diff --git a/fs/smbfs_common/smb2pdu.h b/fs/smbfs_common/smb2pdu.h
index 2cab413fffee..7d605db3bb3b 100644
--- a/fs/smbfs_common/smb2pdu.h
+++ b/fs/smbfs_common/smb2pdu.h
@@ -1101,7 +1101,11 @@ struct smb2_change_notify_rsp {
#define SMB2_CREATE_REQUEST_LEASE "RqLs"
#define SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 "DH2Q"
#define SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 "DH2C"
-#define SMB2_CREATE_TAG_POSIX
"\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
+#define SMB2_CREATE_TAG_POSIX
"\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
+#define SMB2_CREATE_APP_INSTANCE_ID
"\x45\xBC\xA6\x6A\xEF\xA7\xF7\x4A\x90\x08\xFA\x46\x2E\x14\x4D\x74"
+#define SMB2_CREATE_APP_INSTANCE_VERSION
"\xB9\x82\xD0\xB7\x3B\x56\x07\x4F\xA0\x7B\x52\x4A\x81\x16\xA0\x10"
+#define SVHDX_OPEN_DEVICE_CONTEXT
"\x9C\xCB\xCF\x9E\x04\xC1\xE6\x43\x98\x0E\x15\x8D\xA1\xF6\xEC\x83"
+#define SMB2_CREATE_TAG_AAPL "AAPL"
--
Thanks,
Steve
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: new SMB3.1.1 create contexts
2022-10-01 23:50 new SMB3.1.1 create contexts Steve French
@ 2022-10-02 4:01 ` Steve French
2022-10-02 18:26 ` Tom Talpey
0 siblings, 1 reply; 3+ messages in thread
From: Steve French @ 2022-10-02 4:01 UTC (permalink / raw)
To: samba-technical, CIFS
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
patch attached to add the four missing create context IDs to the kernel
On Sat, Oct 1, 2022 at 6:50 PM Steve French <smfrench@gmail.com> wrote:
>
> Noticed a few SMB3.1.1 create contexts missing from the Linux kernel
> code. Any more beyond these four that are still missing?
>
> diff --git a/fs/smbfs_common/smb2pdu.h b/fs/smbfs_common/smb2pdu.h
> index 2cab413fffee..7d605db3bb3b 100644
> --- a/fs/smbfs_common/smb2pdu.h
> +++ b/fs/smbfs_common/smb2pdu.h
> @@ -1101,7 +1101,11 @@ struct smb2_change_notify_rsp {
> #define SMB2_CREATE_REQUEST_LEASE "RqLs"
> #define SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 "DH2Q"
> #define SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 "DH2C"
> -#define SMB2_CREATE_TAG_POSIX
> "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
> +#define SMB2_CREATE_TAG_POSIX
> "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
> +#define SMB2_CREATE_APP_INSTANCE_ID
> "\x45\xBC\xA6\x6A\xEF\xA7\xF7\x4A\x90\x08\xFA\x46\x2E\x14\x4D\x74"
> +#define SMB2_CREATE_APP_INSTANCE_VERSION
> "\xB9\x82\xD0\xB7\x3B\x56\x07\x4F\xA0\x7B\x52\x4A\x81\x16\xA0\x10"
> +#define SVHDX_OPEN_DEVICE_CONTEXT
> "\x9C\xCB\xCF\x9E\x04\xC1\xE6\x43\x98\x0E\x15\x8D\xA1\xF6\xEC\x83"
> +#define SMB2_CREATE_TAG_AAPL "AAPL"
>
>
> --
> Thanks,
>
> Steve
--
Thanks,
Steve
[-- Attachment #2: 0010-smb3-define-missing-create-contexts.patch --]
[-- Type: text/x-patch, Size: 1505 bytes --]
From 313b1f739604b978bb996a6d620c011657ce1b4e Mon Sep 17 00:00:00 2001
From: Steve French <stfrench@microsoft.com>
Date: Sat, 1 Oct 2022 22:52:20 -0500
Subject: [PATCH 10/10] smb3: define missing create contexts
Update the list of create contexts to include the three
more recent ones and the one used for mounts to Macs.
Signed-off-by: Steve French <stfrench@microsoft.com>
---
fs/smbfs_common/smb2pdu.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/smbfs_common/smb2pdu.h b/fs/smbfs_common/smb2pdu.h
index 2cab413fffee..7d605db3bb3b 100644
--- a/fs/smbfs_common/smb2pdu.h
+++ b/fs/smbfs_common/smb2pdu.h
@@ -1101,7 +1101,11 @@ struct smb2_change_notify_rsp {
#define SMB2_CREATE_REQUEST_LEASE "RqLs"
#define SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 "DH2Q"
#define SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 "DH2C"
-#define SMB2_CREATE_TAG_POSIX "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
+#define SMB2_CREATE_TAG_POSIX "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
+#define SMB2_CREATE_APP_INSTANCE_ID "\x45\xBC\xA6\x6A\xEF\xA7\xF7\x4A\x90\x08\xFA\x46\x2E\x14\x4D\x74"
+#define SMB2_CREATE_APP_INSTANCE_VERSION "\xB9\x82\xD0\xB7\x3B\x56\x07\x4F\xA0\x7B\x52\x4A\x81\x16\xA0\x10"
+#define SVHDX_OPEN_DEVICE_CONTEXT "\x9C\xCB\xCF\x9E\x04\xC1\xE6\x43\x98\x0E\x15\x8D\xA1\xF6\xEC\x83"
+#define SMB2_CREATE_TAG_AAPL "AAPL"
/* Flag (SMB3 open response) values */
#define SMB2_CREATE_FLAG_REPARSEPOINT 0x01
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: new SMB3.1.1 create contexts
2022-10-02 4:01 ` Steve French
@ 2022-10-02 18:26 ` Tom Talpey
0 siblings, 0 replies; 3+ messages in thread
From: Tom Talpey @ 2022-10-02 18:26 UTC (permalink / raw)
To: Steve French, samba-technical, CIFS
On 10/2/2022 12:01 AM, Steve French wrote:
> patch attached to add the four missing create context IDs to the kernel
These don't seem very important, to me. The APP_INSTANCE ones are
about clustered clients where VMs may want to migrate around the
cluster and not lose their VHDs. The OPEN_DEVICE_CONTEXT is about
MS-RSVD. Neither of these are in Linux?
The AAPL one is all about MacOS behaviors. If this is being added,
it needs additional documentation of the parameter block, no?
Tom.
> On Sat, Oct 1, 2022 at 6:50 PM Steve French <smfrench@gmail.com> wrote:
>>
>> Noticed a few SMB3.1.1 create contexts missing from the Linux kernel
>> code. Any more beyond these four that are still missing?
>>
>> diff --git a/fs/smbfs_common/smb2pdu.h b/fs/smbfs_common/smb2pdu.h
>> index 2cab413fffee..7d605db3bb3b 100644
>> --- a/fs/smbfs_common/smb2pdu.h
>> +++ b/fs/smbfs_common/smb2pdu.h
>> @@ -1101,7 +1101,11 @@ struct smb2_change_notify_rsp {
>> #define SMB2_CREATE_REQUEST_LEASE "RqLs"
>> #define SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 "DH2Q"
>> #define SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 "DH2C"
>> -#define SMB2_CREATE_TAG_POSIX
>> "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
>> +#define SMB2_CREATE_TAG_POSIX
>> "\x93\xAD\x25\x50\x9C\xB4\x11\xE7\xB4\x23\x83\xDE\x96\x8B\xCD\x7C"
>> +#define SMB2_CREATE_APP_INSTANCE_ID
>> "\x45\xBC\xA6\x6A\xEF\xA7\xF7\x4A\x90\x08\xFA\x46\x2E\x14\x4D\x74"
>> +#define SMB2_CREATE_APP_INSTANCE_VERSION
>> "\xB9\x82\xD0\xB7\x3B\x56\x07\x4F\xA0\x7B\x52\x4A\x81\x16\xA0\x10"
>> +#define SVHDX_OPEN_DEVICE_CONTEXT
>> "\x9C\xCB\xCF\x9E\x04\xC1\xE6\x43\x98\x0E\x15\x8D\xA1\xF6\xEC\x83"
>> +#define SMB2_CREATE_TAG_AAPL "AAPL"
>>
>>
>> --
>> Thanks,
>>
>> Steve
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-02 18:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-01 23:50 new SMB3.1.1 create contexts Steve French
2022-10-02 4:01 ` Steve French
2022-10-02 18:26 ` Tom Talpey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).