smb_query_information.c revision 6537f381d2d9e7b4e2f7b29c3e7a3f13be036f2e
/*
* 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_information
*
* This request is sent to obtain information about a file.
*
* Client Request Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 0
* USHORT ByteCount; Count of data bytes; min = 2
* UCHAR BufferFormat; 0x04
* STRING FileName[]; File name
*
* FileName is the fully qualified name of the file relative to the Tid in
* the header.
*
* Server Response Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 10
* USHORT FileAttributes;
* UTIME LastWriteTime; Time of last write
* ULONG FileSize; File size
* USHORT Reserved [5]; Reserved - client should ignore
* USHORT ByteCount; Count of data bytes = 0
*
* FileAttributes are as described in the "Attributes Encoding" section of
* this document.
*
* Note that FileSize is limited to 32 bits, this request is inappropriate
* for files whose size is too large.
*
* NOTES:
* Some clients send a NULL file name. Right now we return ERRbadfile
* until we find out what a MS client would send...
*/
#include <smbsrv/smb_incl.h>
#include <smbsrv/smb_fsops.h>
{
int rc;
}
}
void
{
}
{
int rc;
10, SMB_FA_NORMAL, 0, 0, 0);
}
!= 0) {
return (SDRC_ERROR);
}
return (SDRC_ERROR);
}
}