Skip to contentSkip to conversation

smb: update POSIX extension specification references

PATCH Applied ZhangGuoDong 3 participants 8 messages Sep 21 – Sep 23

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH v2 1/3 smb/server: 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/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
#3 lore raw

PATCH v2 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
#6 lore raw

PATCH v2 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 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fs/smb/common/fscc.h +2 -3
index e46d3379b779..00f09e1a3afe 100644
@@ -399,7 +399,7 @@ static_assert(offsetof(struct smb2_file_rename_info, FileName) == sizeof(struct
 #define FS_OBJECT_ID_INFORMATION	8 /* Query, Set */
 #define FS_DRIVER_PATH_INFORMATION	9 /* Query */
 #define FS_SECTOR_SIZE_INFORMATION	11 /* SMB3 or later. Query */
-/* See POSIX Extensions to MS-FSCC 2.3.1.1 */
+/* See POSIX-FSCC 2.3 */
 #define FS_POSIX_INFORMATION		100 /* SMB3.1.1 POSIX. Query */
 
 /* See MS-FSCC 2.5.1 */
@@ -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
#0 lore raw

v2 cover smb: update POSIX extension specification references

From: ChenXiaoSong <[email protected]>

v1->v2: Patch #03: update FS_POSIX_INFORMATION reference.

v1: https://lore.kernel.org/linux-cifs/[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    |  5 ++---
 fs/smb/server/smb2pdu.h | 16 +++++++---------
 3 files changed, 16 insertions(+), 15 deletions(-)
Signature · 1 line
2.55.0
maintainer Reviewed-by on v2 2/3
#4 lore raw

Re: [PATCH v2 2/3] smb/client: update POSIX extension specification references

In reply to ZhangGuoDong
Quoted 9 lines · ZhangGuoDong

From: ZhangGuoDong <[email protected]>

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

Thanks.

maintainer Applied
#7 lore raw

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

In reply to ZhangGuoDong
Quoted 10 lines · ZhangGuoDong

From: ZhangGuoDong <[email protected]>

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

Applied it to #ksmbd-for-next.
Thanks!