1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Fix the smb2_setinfo to handle FS info types and FSQUOTA infolevel

Signed-off-by: Partha Sarathi  <partha@exablox.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>

Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Apr 27 05:39:01 CEST 2016 on sn-devel-144
This commit is contained in:
Partha Sarathi
2016-04-14 12:39:05 +00:00
committed by Uri Simchoni
parent f4181f25b4
commit 07e2f4731e
3 changed files with 116 additions and 52 deletions

View File

@ -530,6 +530,24 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
break;
}
case 0x02:/* SMB2_SETINFO_FS */
{
uint16_t file_info_level = in_file_info_class + 1000;
status = smbd_do_setfsinfo(conn, smbreq, state,
file_info_level,
fsp,
&in_input_buffer);
if (!NT_STATUS_IS_OK(status)) {
if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_LEVEL)) {
status = NT_STATUS_INVALID_INFO_CLASS;
}
tevent_req_nterror(req, status);
return tevent_req_post(req, ev);
}
break;
}
case 0x03:/* SMB2_SETINFO_SECURITY */
{
if (!CAN_WRITE(conn)) {