smb_query_information2.c revision 7b59d02d2a384be9a08087b14defadd214b3c1dd
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* SMB: query_information2
*
* This SMB is gets information about the file represented by Fid.
*
* Client Request Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 2
* USHORT Fid; File handle
* USHORT ByteCount; Count of data bytes = 0
*
* Server Response Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 11
* SMB_DATE CreationDate;
* SMB_TIME CreationTime;
* SMB_DATE LastAccessDate;
* SMB_TIME LastAccessTime;
* SMB_DATE LastWriteDate;
* SMB_TIME LastWriteTime;
* ULONG FileDataSize; File end of data
* ULONG FileAllocationSize; File allocation size
* USHORT FileAttributes;
* USHORT ByteCount; Count of data bytes; min = 0
*
* The file being interrogated is specified by Fid, which must possess at
* least read permission.
*
* FileAttributes are described in the "File Attribute Encoding" section
* elsewhere in this document.
*/
#include <smbsrv/smb_incl.h>
{
unsigned short dattr;
int rc;
return (SDRC_ERROR_REPLY);
return (SDRC_ERROR_REPLY);
}
return (SDRC_ERROR_REPLY);
}
11, /* wct */
/* LastAccessTime */
/* LastWriteTime */
dattr, /* FileAttributes */
0); /* bcc */
}