Commit c4a2a49
smb: move FILE_SYSTEM_ATTRIBUTE_INFO to common/fscc.h
Modify the following places:
- struct filesystem_attribute_info -> FILE_SYSTEM_ATTRIBUTE_INFO
- Remove MIN_FS_ATTR_INFO_SIZE definition
- Introduce MAX_FS_NAME_LEN
- max_len of FileFsAttributeInformation -> sizeof(FILE_SYSTEM_ATTRIBUTE_INFO) + MAX_FS_NAME_LEN
- min_len of FileFsAttributeInformation -> sizeof(FILE_SYSTEM_ATTRIBUTE_INFO)
- SMB2_QFS_attr(): memcpy(..., min_len)
Then move FILE_SYSTEM_ATTRIBUTE_INFO to common header file.
I have tested the relevant code related to FILE_SYSTEM_ATTRIBUTE_INFO (Link[1]).
Link[1]: https://chenxiaosong.com/en/FILE_SYSTEM_ATTRIBUTE_INFO.html
Suggested-by: Namjae Jeon <linkinjeon@kernel.org>
Tested-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent e4442b2 commit c4a2a49
5 files changed
Lines changed: 15 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2068 | 2068 | | |
2069 | 2069 | | |
2070 | 2070 | | |
2071 | | - | |
2072 | | - | |
2073 | | - | |
2074 | | - | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | | - | |
2080 | | - | |
2081 | 2071 | | |
2082 | 2072 | | |
2083 | 2073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5981 | 5981 | | |
5982 | 5982 | | |
5983 | 5983 | | |
5984 | | - | |
5985 | | - | |
| 5984 | + | |
| 5985 | + | |
5986 | 5986 | | |
5987 | 5987 | | |
5988 | 5988 | | |
| |||
6028 | 6028 | | |
6029 | 6029 | | |
6030 | 6030 | | |
6031 | | - | |
| 6031 | + | |
6032 | 6032 | | |
6033 | 6033 | | |
6034 | 6034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
97 | 106 | | |
98 | 107 | | |
99 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5479 | 5479 | | |
5480 | 5480 | | |
5481 | 5481 | | |
5482 | | - | |
| 5482 | + | |
5483 | 5483 | | |
5484 | 5484 | | |
5485 | | - | |
| 5485 | + | |
5486 | 5486 | | |
5487 | 5487 | | |
5488 | 5488 | | |
| |||
5501 | 5501 | | |
5502 | 5502 | | |
5503 | 5503 | | |
5504 | | - | |
| 5504 | + | |
5505 | 5505 | | |
5506 | 5506 | | |
5507 | 5507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 93 | | |
101 | 94 | | |
102 | 95 | | |
| |||
0 commit comments