Skip to content

Commit bcdd6cf

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb: add documentation references for smb2 change notify definitions
To make it easier to locate the documentation during development. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent a9adafd commit bcdd6cf

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

fs/smb/client/cifspdu.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,10 @@ typedef struct smb_com_transaction_change_notify_rsp {
13811381
#define FILE_ACTION_REMOVED_STREAM 0x00000007
13821382
#define FILE_ACTION_MODIFIED_STREAM 0x00000008
13831383

1384-
/* response contains array of the following structures */
1384+
/*
1385+
* response contains array of the following structures
1386+
* See MS-FSCC 2.7.1
1387+
*/
13851388
struct file_notify_information {
13861389
__le32 NextEntryOffset;
13871390
__le32 Action;

fs/smb/common/smb2pdu.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,10 @@ struct smb2_set_info_rsp {
10021002
#define FILE_NOTIFY_CHANGE_STREAM_SIZE 0x00000400
10031003
#define FILE_NOTIFY_CHANGE_STREAM_WRITE 0x00000800
10041004

1005-
/* SMB2 Notify Action Flags */
1005+
/*
1006+
* SMB2 Notify Action Flags
1007+
* See MS-FSCC 2.7.1
1008+
*/
10061009
#define FILE_ACTION_ADDED 0x00000001
10071010
#define FILE_ACTION_REMOVED 0x00000002
10081011
#define FILE_ACTION_MODIFIED 0x00000003
@@ -1013,6 +1016,7 @@ struct smb2_set_info_rsp {
10131016
#define FILE_ACTION_MODIFIED_STREAM 0x00000008
10141017
#define FILE_ACTION_REMOVED_BY_DELETE 0x00000009
10151018

1019+
/* See MS-SMB2 2.2.35 */
10161020
struct smb2_change_notify_req {
10171021
struct smb2_hdr hdr;
10181022
__le16 StructureSize;
@@ -1024,6 +1028,7 @@ struct smb2_change_notify_req {
10241028
__u32 Reserved;
10251029
} __packed;
10261030

1031+
/* See MS-SMB2 2.2.36 */
10271032
struct smb2_change_notify_rsp {
10281033
struct smb2_hdr hdr;
10291034
__le16 StructureSize; /* Must be 9 */

0 commit comments

Comments
 (0)