smb_trans2_create_directory.c revision 2c1b14e51525da2c09064641416fc4aed457c72f
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER END
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Use is subject to license terms.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * SMB: trans2_create_directory
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * This requests the server to create a directory relative to Tid in the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * SMB header, optionally assigning extended attributes to it.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Client Request Value
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * ========================== =========================================
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * WordCount 15
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * MaxSetupCount 0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * SetupCount 1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Setup[0] TRANS2_CREATE_DIRECTORY
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Parameter Block Encoding Description
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * ========================== =========================================
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * ULONG Reserved; Reserved--must be zero
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * STRING Name[]; Directory name to create
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * UCHAR Data[]; Optional FEAList for the new directory
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Response Parameter Block Description
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * ========================== =========================================
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * USHORT EaErrorOffset Offset into FEAList of first error which
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * occurred while setting EAs
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * smb_com_trans2_create_directory
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwsmb_com_trans2_create_directory(struct smb_request *sr, struct smb_xa *xa)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw if ((status = smb_validate_dirname(sr->arg.dirop.fqi.path)) != 0) {