Skip to contentSkip to conversation

smb: update POSIX extension specification references

PATCH Superseded ZhangGuoDong 2 participants 7 messages Sep 20 – Sep 21

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover smb: update POSIX extension specification references

From: ChenXiaoSong <[email protected]>

ZhangGuoDong (3):
smb/server: update POSIX extension specification references smb/client: update POSIX extension specification references smb/common: update POSIX extension specification references

 fs/smb/client/smb2pdu.h | 10 +++++++---
 fs/smb/common/fscc.h    |  3 +--
 fs/smb/server/smb2pdu.h | 16 +++++++---------
 3 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/3 smb/server: update POSIX extension specification references

From: ZhangGuoDong <[email protected]>

The POSIX extension specifications have now been published:
https://smb3posix.org/

---
 fs/smb/server/smb2pdu.h | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
fs/smb/server/smb2pdu.h +7 -9
index 95c89087553b..40d61745ef41 100644
@@ -156,8 +156,7 @@ struct create_durable_rsp {
 } __packed;
 
 /*
- * See POSIX-SMB2 2.2.14.2.16
- * Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/smb3_posix_extensions.md
+ * See POSIX-SMB2 2.1.3.2.1
  */
 struct create_posix_rsp {
 	struct create_context_hdr ccontext;
@@ -349,6 +348,7 @@ struct create_sd_buf_req {
 	struct smb_ntsd ntsd;
 } __packed;
 
+/* See POSIX-FSCC 2.2.1 */
 struct smb2_posix_info {
 	__le32 NextEntryOffset;
 	__u32 Ignored;
@@ -362,20 +362,18 @@ struct smb2_posix_info {
 	__le64 Inode;
 	__le32 DeviceId;
 	__le32 Zero;
-	/* beginning of POSIX Create Context Response */
+	/*
+	 * Beginning of POSIX Create Context Response
+	 * See POSIX-SMB2 2.1.3.2.1
+	 */
 	__le32 HardLinks;
 	__le32 ReparseTag;
 	__le32 Mode;
 	/* SidBuffer contain two sids (UNIX user sid(16), UNIX group sid(16)) */
 	u8 SidBuffer[32];
+	/* End of POSIX Create Context Response */
 	__le32 name_len;
 	u8 name[];
-	/*
-	 * var sized owner SID
-	 * var sized group SID
-	 * le32 filenamelength
-	 * u8  filename[]
-	 */
 } __packed;
 
 /* functions */
Signature · 1 line
2.55.0
#4 lore raw

PATCH 2/3 smb/client: update POSIX extension specification references

In reply to ZhangGuoDong

From: ZhangGuoDong <[email protected]>

The POSIX extension specifications have now been published:
https://smb3posix.org/

---
 fs/smb/client/smb2pdu.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
fs/smb/client/smb2pdu.h +7 -3
index ab6c667bebc0..b37a1e3941a1 100644
@@ -224,8 +224,7 @@ struct smb2_file_id_extd_directory_info {
 extern char smb2_padding[7];
 
 /*
- * See POSIX-SMB2 2.2.14.2.16
- * Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/smb3_posix_extensions.md
+ * See POSIX-SMB2 2.1.3.2.1
  */
 struct create_posix_rsp {
 	u32 nlink;
@@ -238,6 +237,7 @@ struct create_posix_rsp {
 #define SMB2_QUERY_DIRECTORY_IOV_SIZE 2
 
 /*
+ * See POSIX-FSCC 2.2.1
  * SMB2-only POSIX info level for query dir
  *
  * See posix_info_sid_size(), posix_info_extra_size() and
@@ -256,13 +256,17 @@ struct smb2_posix_info {
 	__le64 Inode;
 	__le32 DeviceId;
 	__le32 Zero;
-	/* beginning of POSIX Create Context Response */
+	/*
+	 * Beginning of POSIX Create Context Response
+	 * See POSIX-SMB2 2.1.3.2.1
+	 */
 	__le32 HardLinks;
 	__le32 ReparseTag;
 	__le32 Mode;
 	/*
 	 * var sized owner SID
 	 * var sized group SID
+	 * End of POSIX Create Context Response
 	 * le32 filenamelength
 	 * u8  filename[]
 	 */
Signature · 1 line
2.55.0
#5 lore raw

PATCH 3/3 smb/common: update POSIX extension specification references

In reply to ZhangGuoDong

From: ZhangGuoDong <[email protected]>

The POSIX extension specifications have now been published:
https://smb3posix.org/

---
 fs/smb/common/fscc.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/smb/common/fscc.h +1 -2
index e46d3379b779..61bb1f8e4a64 100644
@@ -575,8 +575,7 @@ struct file_notify_information {
 } __packed;
 
 /*
- * See POSIX Extensions to MS-FSCC 2.3.2.1
- * Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/fscc_posix_extensions.md
+ * See POSIX-FSCC 2.3.1
  */
 typedef struct {
 	/* For undefined recommended transfer size return -1 in that field */
Signature · 1 line
2.55.0
maintainer
#6 lore raw

Re: [PATCH 3/3] smb/common: update POSIX extension specification references

fs/smb/common/fscc.h struct file_notify_information { · line 578

Quoted 7 lines
fs/smb/common/fscc.h +1 -2
@@ -575,8 +575,7 @@ struct file_notify_information {
 } __packed;
 
 /*
- * See POSIX Extensions to MS-FSCC 2.3.2.1
- * Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/fscc_posix_extensions.md
+ * See POSIX-FSCC 2.3.1

Please also update the reference below, which still points to section 2.3.1.1.

/* See POSIX Extensions to MS-FSCC 2.3.1.1 */
#define FS_POSIX_INFORMATION 100 /* SMB3.1.1 POSIX. Query */

Thanks.

maintainer
#2 lore raw

Re: [PATCH 1/3] smb/server: update POSIX extension specification references

In reply to ZhangGuoDong
Quoted 13 lines
fs/smb/server/smb2pdu.h +4 -1
@@ -362,20 +362,18 @@ struct smb2_posix_info {
        __le64 Inode;
        __le32 DeviceId;
        __le32 Zero;
-       /* beginning of POSIX Create Context Response */
+       /*
+        * Beginning of POSIX Create Context Response
+        * See POSIX-SMB2 2.1.3.2.1
+        */
        __le32 HardLinks;
        __le32 ReparseTag;
        __le32 Mode;
        /* SidBuffer contain two sids (UNIX user sid(16), UNIX group sid(16)) */

fs/smb/server/smb2pdu.h struct smb2_posix_info { · line 378

Quoted 10 lines
fs/smb/server/smb2pdu.h +1 -6
        u8 SidBuffer[32];
+       /* End of POSIX Create Context Response */
        __le32 name_len;
        u8 name[];
-       /*
-        * var sized owner SID
-        * var sized group SID
-        * le32 filenamelength
-        * u8  filename[]
-        */

Is there any reason to delete these?

#3 lore raw

Re: [PATCH 1/3] smb/server: update POSIX extension specification references

These members are already defined in the structure, so the comments can be removed.

Quoted 12 lines · Namjae Jeon

fs/smb/server/smb2pdu.h struct smb2_posix_info { · line 378

Quoted 11 lines
         /* SidBuffer contain two sids (UNIX user sid(16), UNIX group sid(16)) */
         u8 SidBuffer[32];
fs/smb/server/smb2pdu.h +1 -6
+       /* End of POSIX Create Context Response */
         __le32 name_len;
         u8 name[];
-       /*
-        * var sized owner SID
-        * var sized group SID
-        * le32 filenamelength
-        * u8  filename[]
-        */

Is there any reason to delete these?