smb_set_information.c revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* SMB: set_information
*
* This message is sent to change the information about a file.
*
* Client Request Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 8
* USHORT FileAttributes; Attributes of the file
* UTIME LastWriteTime; Time of last write
* USHORT Reserved [5]; Reserved (must be 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.
*
* Support of all parameters is optional. A server which does not
* implement one of the parameters will ignore that field. If the
* LastWriteTime field contain zero then the file's time is not changed.
*
* Server Response Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 0
* USHORT ByteCount; Count of data bytes = 0
*
*/
#include <smbsrv/smb_incl.h>
#include <smbsrv/smb_fsops.h>
int
{
int rc;
unsigned short dattr;
char *path;
char *name;
/* NOTREACHED */
}
/* NOTREACHED */
}
!= 0) {
/* NOTREACHED */
}
/* NOTREACHED */
}
/*
* IR101794 The behaviour when the time field is set to -1
* is not documented, so we'll assume it should be treated
* like 0. We ignore utime.tv_nsec is assumed to be 0 here.
*/
}
if (rc) {
/* NOTREACHED */
}
return (SDRC_NORMAL_REPLY);
}