* [PATCH v2 0/3] smb: update POSIX extension specification references
@ 2026-09-21 1:41 ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 1/3] smb/server: " ZhangGuoDong
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: ZhangGuoDong @ 2026-09-21 1:41 UTC (permalink / raw)
To: linkinjeon, pc; +Cc: linux-cifs, ChenXiaoSong
From: ChenXiaoSong <chenxiaosong@kylinos.cn>
v1->v2: Patch #03: update FS_POSIX_INFORMATION reference.
v1: https://lore.kernel.org/linux-cifs/20260920055653.114794-1-zhang.guodong@linux.dev/
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(-)
--
2.55.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/3] smb/server: update POSIX extension specification references
2026-09-21 1:41 [PATCH v2 0/3] smb: update POSIX extension specification references ZhangGuoDong
@ 2026-09-21 1:41 ` ZhangGuoDong
2026-09-21 5:44 ` Namjae Jeon
2026-09-21 1:41 ` [PATCH v2 2/3] smb/client: " ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 3/3] smb/common: " ZhangGuoDong
2 siblings, 1 reply; 8+ messages in thread
From: ZhangGuoDong @ 2026-09-21 1:41 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] 8+ messages in thread
* [PATCH v2 2/3] smb/client: update POSIX extension specification references
2026-09-21 1:41 [PATCH v2 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 1/3] smb/server: " ZhangGuoDong
@ 2026-09-21 1:41 ` ZhangGuoDong
2026-09-21 5:41 ` Namjae Jeon
2026-09-23 1:19 ` Paulo Alcantara
2026-09-21 1:41 ` [PATCH v2 3/3] smb/common: " ZhangGuoDong
2 siblings, 2 replies; 8+ messages in thread
From: ZhangGuoDong @ 2026-09-21 1:41 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] 8+ messages in thread
* [PATCH v2 3/3] smb/common: update POSIX extension specification references
2026-09-21 1:41 [PATCH v2 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 1/3] smb/server: " ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 2/3] smb/client: " ZhangGuoDong
@ 2026-09-21 1:41 ` ZhangGuoDong
2026-09-21 5:45 ` Namjae Jeon
2 siblings, 1 reply; 8+ messages in thread
From: ZhangGuoDong @ 2026-09-21 1:41 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>
Suggested-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
---
fs/smb/common/fscc.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/smb/common/fscc.h b/fs/smb/common/fscc.h
index e46d3379b779..00f09e1a3afe 100644
--- a/fs/smb/common/fscc.h
+++ b/fs/smb/common/fscc.h
@@ -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 */
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/3] smb/client: update POSIX extension specification references
2026-09-21 1:41 ` [PATCH v2 2/3] smb/client: " ZhangGuoDong
@ 2026-09-21 5:41 ` Namjae Jeon
2026-09-23 1:19 ` Paulo Alcantara
1 sibling, 0 replies; 8+ messages in thread
From: Namjae Jeon @ 2026-09-21 5:41 UTC (permalink / raw)
To: ZhangGuoDong; +Cc: pc, linux-cifs, ZhangGuoDong, ChenXiaoSong
On Mon, Sep 21, 2026 at 10:41 AM ZhangGuoDong <zhang.guodong@linux.dev> wrote:
>
> 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>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/3] smb/server: update POSIX extension specification references
2026-09-21 1:41 ` [PATCH v2 1/3] smb/server: " ZhangGuoDong
@ 2026-09-21 5:44 ` Namjae Jeon
0 siblings, 0 replies; 8+ messages in thread
From: Namjae Jeon @ 2026-09-21 5:44 UTC (permalink / raw)
To: ZhangGuoDong; +Cc: pc, linux-cifs, ZhangGuoDong, ChenXiaoSong
On Mon, Sep 21, 2026 at 10:41 AM ZhangGuoDong <zhang.guodong@linux.dev> wrote:
>
> 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>
Applied it to #ksmbd-for-next.
Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] smb/common: update POSIX extension specification references
2026-09-21 1:41 ` [PATCH v2 3/3] smb/common: " ZhangGuoDong
@ 2026-09-21 5:45 ` Namjae Jeon
0 siblings, 0 replies; 8+ messages in thread
From: Namjae Jeon @ 2026-09-21 5:45 UTC (permalink / raw)
To: ZhangGuoDong; +Cc: pc, linux-cifs, ZhangGuoDong, ChenXiaoSong
On Mon, Sep 21, 2026 at 10:41 AM ZhangGuoDong <zhang.guodong@linux.dev> wrote:
>
> From: ZhangGuoDong <zhangguodong@kylinos.cn>
>
> The POSIX extension specifications have now been published:
> https://smb3posix.org/
>
> Suggested-by: Paulo Alcantara <pc@manguebit.org>
> Suggested-by: Namjae Jeon <linkinjeon@kernel.org>
> Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
> Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Applied it to #ksmbd-for-next.
Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/3] smb/client: update POSIX extension specification references
2026-09-21 1:41 ` [PATCH v2 2/3] smb/client: " ZhangGuoDong
2026-09-21 5:41 ` Namjae Jeon
@ 2026-09-23 1:19 ` Paulo Alcantara
1 sibling, 0 replies; 8+ messages in thread
From: Paulo Alcantara @ 2026-09-23 1:19 UTC (permalink / raw)
To: ZhangGuoDong, linkinjeon; +Cc: linux-cifs, ZhangGuoDong, ChenXiaoSong
ZhangGuoDong <zhang.guodong@linux.dev> writes:
> From: ZhangGuoDong <zhangguodong@kylinos.cn>
>
> The POSIX extension specifications have now been published:
> https://smb3posix.org/
> ...
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-09-23 1:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 1:41 [PATCH v2 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-21 1:41 ` [PATCH v2 1/3] smb/server: " ZhangGuoDong
2026-09-21 5:44 ` Namjae Jeon
2026-09-21 1:41 ` [PATCH v2 2/3] smb/client: " ZhangGuoDong
2026-09-21 5:41 ` Namjae Jeon
2026-09-23 1:19 ` Paulo Alcantara
2026-09-21 1:41 ` [PATCH v2 3/3] smb/common: " ZhangGuoDong
2026-09-21 5:45 ` Namjae Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox