/*
* 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_QUERY_INFO
*/
#include <smbsrv/smb2_kproto.h>
#include <smbsrv/smb_fsops.h>
{
int rc = 0;
/*
* SMB2 Query Info request
*/
&StructSize, /* w */
&oBufLength, /* l */
&iBufOffset, /* w */
/* reserved .. */
&iBufLength, /* l */
sdrc = SDRC_ERROR;
goto out;
}
if (status) {
goto out;
}
if (oBufLength > smb2_max_trans)
/*
* If there's an input buffer, setup a shadow.
*/
if (iBufLength) {
if (rc) {
goto out;
}
}
switch (qi->qi_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;
}
switch (status) {
case 0: /* success */
break;
/* Not really an error, per se. Advisory. */
break;
/*
* These are special, per. [MS-SMB2] 3.2.5.17
* The error data is a 4-byte count of the size
* required to successfully query the data.
* That error data is built by the functions
* that returns one of these errors.
*/
goto out;
default:
goto out;
}
/*
* SMB2 Query Info reply
*/
9, /* StructSize */ /* w */
DataOff, /* w */
oBufLength, /* l */
if (rc)
sdrc = SDRC_ERROR;
out:
return (sdrc);
}