Skip to content

Commit 08c2a7d

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb: move file_notify_information to common/fscc.h
This struct definition is specified in MS-FSCC, and KSMBD will also use it, so move it into common header file. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 6539e18 commit 08c2a7d

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

fs/smb/client/cifspdu.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,17 +1358,6 @@ typedef struct smb_com_transaction_change_notify_rsp {
13581358
/* __u8 Pad[3]; */
13591359
} __packed TRANSACT_CHANGE_NOTIFY_RSP;
13601360

1361-
/*
1362-
* response contains array of the following structures
1363-
* See MS-FSCC 2.7.1
1364-
*/
1365-
struct file_notify_information {
1366-
__le32 NextEntryOffset;
1367-
__le32 Action;
1368-
__le32 FileNameLength;
1369-
__u8 FileName[];
1370-
} __packed;
1371-
13721361
struct cifs_quota_data {
13731362
__u32 rsrvd1; /* 0 */
13741363
__u32 sid_size;

fs/smb/common/fscc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ typedef struct {
144144
__le32 DeviceCharacteristics;
145145
} __packed FILE_SYSTEM_DEVICE_INFO; /* device info level 0x104 */
146146

147+
/*
148+
* Response contains array of the following structures
149+
* See MS-FSCC 2.7.1
150+
*/
151+
struct file_notify_information {
152+
__le32 NextEntryOffset;
153+
__le32 Action;
154+
__le32 FileNameLength;
155+
__u8 FileName[];
156+
} __packed;
157+
147158
/*
148159
* See POSIX Extensions to MS-FSCC 2.3.2.1
149160
* Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/fscc_posix_extensions.md

0 commit comments

Comments
 (0)