mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
libsmb: Use SMB2_0_INFO_ constants instead of magic numbers
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
7ecf3b0e25
commit
e79698c4be
@ -2431,7 +2431,7 @@ NTSTATUS cli_smb2_setatr(struct cli_state *cli,
|
||||
return cli_smb2_setpathinfo(
|
||||
cli,
|
||||
name,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_BASIC_INFORMATION, /* in_file_info_class */
|
||||
&inbuf);
|
||||
}
|
||||
@ -2480,7 +2480,7 @@ NTSTATUS cli_smb2_setattrE(struct cli_state *cli,
|
||||
status = cli_smb2_set_info_fnum(
|
||||
cli,
|
||||
fnum,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_BASIC_INFORMATION, /* in_file_info_class */
|
||||
&inbuf, /* in_input_buffer */
|
||||
0); /* in_additional_info */
|
||||
@ -3149,7 +3149,7 @@ static struct tevent_req *cli_smb2_rename_fnum_send(
|
||||
ev, /* ev */
|
||||
cli, /* cli */
|
||||
fnum, /* fnum */
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_RENAME_INFORMATION, /* in_file_info_class */
|
||||
&state->inbuf, /* in_input_buffer */
|
||||
0); /* in_additional_info */
|
||||
@ -3365,7 +3365,7 @@ NTSTATUS cli_smb2_set_ea_fnum(struct cli_state *cli,
|
||||
status = cli_smb2_set_info_fnum(
|
||||
cli,
|
||||
fnum,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_FULL_EA_INFORMATION, /* in_file_info_class */
|
||||
&inbuf, /* in_input_buffer */
|
||||
0); /* in_additional_info */
|
||||
@ -3474,7 +3474,7 @@ NTSTATUS cli_smb2_get_ea_list_path(struct cli_state *cli,
|
||||
status = cli_smb2_query_info_fnum(
|
||||
cli,
|
||||
fnum,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_FULL_EA_INFORMATION, /* in_file_info_class */
|
||||
0xFFFF, /* in_max_output_length */
|
||||
NULL, /* in_input_buffer */
|
||||
@ -3726,7 +3726,7 @@ NTSTATUS cli_smb2_get_fs_quota_info(struct cli_state *cli,
|
||||
status = cli_smb2_query_info_fnum(
|
||||
cli,
|
||||
quota_fnum,
|
||||
2, /* in_info_type */
|
||||
SMB2_0_INFO_FILESYSTEM, /* in_info_type */
|
||||
FSCC_FS_QUOTA_INFORMATION, /* in_file_info_class */
|
||||
0xFFFF, /* in_max_output_length */
|
||||
NULL, /* in_input_buffer */
|
||||
@ -3814,7 +3814,7 @@ NTSTATUS cli_smb2_set_fs_quota_info(struct cli_state *cli,
|
||||
status = cli_smb2_set_info_fnum(
|
||||
cli,
|
||||
quota_fnum,
|
||||
2, /* in_info_type */
|
||||
SMB2_0_INFO_FILESYSTEM, /* in_info_type */
|
||||
FSCC_FS_QUOTA_INFORMATION, /* in_file_info_class */
|
||||
&inbuf, /* in_input_buffer */
|
||||
0); /* in_additional_info */
|
||||
@ -4722,7 +4722,7 @@ NTSTATUS cli_smb2_ftruncate(struct cli_state *cli,
|
||||
status = cli_smb2_set_info_fnum(
|
||||
cli,
|
||||
fnum,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_END_OF_FILE_INFORMATION, /* in_file_info_class */
|
||||
&inbuf, /* in_input_buffer */
|
||||
0);
|
||||
|
@ -2026,7 +2026,7 @@ static void cli_smb2_hardlink_opened(struct tevent_req *subreq)
|
||||
state->ev,
|
||||
state->cli,
|
||||
state->fnum_src,
|
||||
1, /* in_info_type */
|
||||
SMB2_0_INFO_FILE, /* in_info_type */
|
||||
FSCC_FILE_LINK_INFORMATION, /* in_file_info_class */
|
||||
&inbuf,
|
||||
0); /* in_additional_info */
|
||||
|
@ -626,7 +626,7 @@ NTSTATUS cli_setpathinfo_ext(struct cli_state *cli, const char *fname,
|
||||
*/
|
||||
return cli_smb2_setpathinfo(cli,
|
||||
fname,
|
||||
1, /* SMB2_SETINFO_FILE */
|
||||
SMB2_0_INFO_FILE,
|
||||
FSCC_FILE_BASIC_INFORMATION,
|
||||
&in_data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user