From: ZhangGuoDong <zhang.guodong@linux.dev>
To: linkinjeon@kernel.org, pc@manguebit.org
Cc: linux-cifs@vger.kernel.org,
ZhangGuoDong <zhangguodong@kylinos.cn>,
ChenXiaoSong <chenxiaosong@kylinos.cn>
Subject: [PATCH 1/3] smb/server: update POSIX extension specification references
Date: Sun, 20 Sep 2026 13:56:51 +0800 [thread overview]
Message-ID: <20260920055653.114794-2-zhang.guodong@linux.dev> (raw)
In-Reply-To: <20260920055653.114794-1-zhang.guodong@linux.dev>
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
next prev parent reply other threads:[~2026-09-20 5:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 5:56 [PATCH 0/3] smb: update POSIX extension specification references ZhangGuoDong
2026-09-20 5:56 ` ZhangGuoDong [this message]
2026-09-20 14:03 ` [PATCH 1/3] smb/server: " Namjae Jeon
2026-09-21 0:35 ` ZhangGuoDong
2026-09-20 5:56 ` [PATCH 2/3] smb/client: " ZhangGuoDong
2026-09-20 5:56 ` [PATCH 3/3] smb/common: " ZhangGuoDong
2026-09-20 13:57 ` Namjae Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260920055653.114794-2-zhang.guodong@linux.dev \
--to=zhang.guodong@linux.dev \
--cc=chenxiaosong@kylinos.cn \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=pc@manguebit.org \
--cc=zhangguodong@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox