mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
smbd: add and use SMB2_FILE_FULL_EA_INFORMATION
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4b53e58340
commit
f33b91a932
@ -406,6 +406,7 @@ Byte offset Type name description
|
||||
#define SMB_FILE_MAXIMUM_INFORMATION (FSCC_FILE_MAXIMUM_INFORMATION + NT_PASSTHROUGH_OFFSET)
|
||||
/* Internal mapped versions. */
|
||||
#define SMB2_FILE_RENAME_INFORMATION_INTERNAL (FSCC_FILE_RENAME_INFORMATION + SMB2_INFO_SPECIAL)
|
||||
#define SMB2_FILE_FULL_EA_INFORMATION (FSCC_FILE_FULL_EA_INFORMATION + SMB2_INFO_SPECIAL)
|
||||
|
||||
/* NT passthough levels for qfsinfo. */
|
||||
|
||||
|
@ -304,8 +304,8 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
|
||||
ZERO_STRUCT(write_time_ts);
|
||||
|
||||
switch (in_file_info_class) {
|
||||
case 0x0F:/* RAW_FILEINFO_SMB2_ALL_EAS */
|
||||
file_info_level = 0xFF00 | in_file_info_class;
|
||||
case FSCC_FILE_FULL_EA_INFORMATION:
|
||||
file_info_level = SMB2_FILE_FULL_EA_INFORMATION;
|
||||
break;
|
||||
|
||||
case 0x12:/* RAW_FILEINFO_SMB2_ALL_INFORMATION */
|
||||
|
@ -5423,11 +5423,8 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
|
||||
break;
|
||||
}
|
||||
|
||||
case 0xFF0F:/*SMB2_INFO_QUERY_ALL_EAS*/
|
||||
case SMB2_FILE_FULL_EA_INFORMATION:
|
||||
{
|
||||
/* This is FileFullEaInformation - 0xF which maps to
|
||||
* 1015 (decimal) in smbd_do_setfilepathinfo. */
|
||||
|
||||
/* We have data_size bytes to put EA's into. */
|
||||
size_t total_ea_len = 0;
|
||||
struct ea_list *ea_file_list = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user