* [PATCH 1/3] smb/server: update POSIX extension specification references
2026-09-20 5:56 [PATCH 0/3] smb: update POSIX extension specification references ZhangGuoDong
@ 2026-09-20 5:56 ` ZhangGuoDong
2026-09-20 14:03 ` Namjae Jeon
2026-09-20 5:56 ` [PATCH 2/3] smb/client: " ZhangGuoDong
2026-09-20 5:56 ` [PATCH 3/3] smb/common: " ZhangGuoDong
2 siblings, 1 reply; 7+ messages in thread
From: ZhangGuoDong @ 2026-09-20 5:56 UTC (permalink / raw)
To: linkinjeon, pc; +Cc: linux-cifs, ZhangGuoDong, ChenXiaoSong
From: ZhangGuoDong <zhangguodong@kylinos.cn>
The POSIX extension specifications have now been published:
https://smb3posix.org/
Suggested-by: Paulo Alcantara <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
---
fs/smb/server/smb2pdu.h | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/fs/smb/server/smb2pdu.h b/fs/smb/server/smb2pdu.h
index 95c89087553b..40d61745ef41 100644
--- a/fs/smb/server/smb2pdu.h
+++ b/fs/smb/server/smb2pdu.h
@@ -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 */
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 1/3] smb/server: update POSIX extension specification references
2026-09-20 5:56 ` [PATCH 1/3] smb/server: " ZhangGuoDong
@ 2026-09-20 14:03 ` Namjae Jeon
2026-09-21 0:35 ` ZhangGuoDong
0 siblings, 1 reply; 7+ messages in thread
From: Namjae Jeon @ 2026-09-20 14:03 UTC (permalink / raw)
To: ZhangGuoDong; +Cc: pc, linux-cifs, ZhangGuoDong, ChenXiaoSong
> @@ -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[]
> - */
Is there any reason to delete these?
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 1/3] smb/server: update POSIX extension specification references
2026-09-20 14:03 ` Namjae Jeon
@ 2026-09-21 0:35 ` ZhangGuoDong
0 siblings, 0 replies; 7+ messages in thread
From: ZhangGuoDong @ 2026-09-21 0:35 UTC (permalink / raw)
To: Namjae Jeon; +Cc: pc, linux-cifs, ZhangGuoDong, ChenXiaoSong
These members are already defined in the structure, so the comments can
be removed.
On 9/20/26 22:03, Namjae Jeon wrote:
>> /* 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[]
>> - */
> Is there any reason to delete these?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] smb/client: update POSIX extension specification references
2026-09-20 5:56 [PATCH 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-20 5:56 ` [PATCH 1/3] smb/server: " ZhangGuoDong
@ 2026-09-20 5:56 ` ZhangGuoDong
2026-09-20 5:56 ` [PATCH 3/3] smb/common: " ZhangGuoDong
2 siblings, 0 replies; 7+ messages in thread
From: ZhangGuoDong @ 2026-09-20 5:56 UTC (permalink / raw)
To: linkinjeon, pc; +Cc: linux-cifs, ZhangGuoDong, ChenXiaoSong
From: ZhangGuoDong <zhangguodong@kylinos.cn>
The POSIX extension specifications have now been published:
https://smb3posix.org/
Suggested-by: Paulo Alcantara <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
---
fs/smb/client/smb2pdu.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/fs/smb/client/smb2pdu.h b/fs/smb/client/smb2pdu.h
index ab6c667bebc0..b37a1e3941a1 100644
--- a/fs/smb/client/smb2pdu.h
+++ b/fs/smb/client/smb2pdu.h
@@ -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[]
*/
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 3/3] smb/common: update POSIX extension specification references
2026-09-20 5:56 [PATCH 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-20 5:56 ` [PATCH 1/3] smb/server: " ZhangGuoDong
2026-09-20 5:56 ` [PATCH 2/3] smb/client: " ZhangGuoDong
@ 2026-09-20 5:56 ` ZhangGuoDong
2026-09-20 13:57 ` Namjae Jeon
2 siblings, 1 reply; 7+ messages in thread
From: ZhangGuoDong @ 2026-09-20 5:56 UTC (permalink / raw)
To: linkinjeon, pc; +Cc: linux-cifs, ZhangGuoDong, ChenXiaoSong
From: ZhangGuoDong <zhangguodong@kylinos.cn>
The POSIX extension specifications have now been published:
https://smb3posix.org/
Suggested-by: Paulo Alcantara <pc@manguebit.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
---
fs/smb/common/fscc.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/smb/common/fscc.h b/fs/smb/common/fscc.h
index e46d3379b779..61bb1f8e4a64 100644
--- a/fs/smb/common/fscc.h
+++ b/fs/smb/common/fscc.h
@@ -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 */
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread