/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Dispatch function for SMB2_SET_INFO
*/
#include <smbsrv/smb2_kproto.h>
#include <smbsrv/smb_fsops.h>
{
int rc = 0;
/*
* SMB2 Set Info request
*/
&StructSize, /* w */
&InfoType, /* b */
&InfoClass, /* b */
&iBufLength, /* l */
&iBufOffset, /* w */
/* reserved .. */
&AddlInfo, /* l */
sdrc = SDRC_ERROR;
return (sdrc);
}
if (iBufLength > smb2_max_trans) {
goto errout;
}
if (status)
goto errout;
/*
* If there's an input buffer, setup a shadow.
*/
if (iBufLength) {
if (rc) {
goto errout;
}
}
/* No output data. */
switch (InfoType) {
case SMB2_0_INFO_FILE:
break;
case SMB2_0_INFO_FILESYSTEM:
break;
case SMB2_0_INFO_SECURITY:
break;
case SMB2_0_INFO_QUOTA:
break;
default:
break;
}
if (status) {
return (sdrc);
}
/*
* SMB2 Query Info reply
*/
2); /* StructSize */ /* w */
if (rc)
sdrc = SDRC_ERROR;
return (sdrc);
}