smb_trans2_create_directory.c revision bbf6f00c25b6a2bed23c35eac6d62998ecdb338c
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
eb1d736b1c19f6abeee90c921a9320b67fedd016afshin salek ardakani - Sun Microsystems - Irvine United States * Copyright 2009 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)
eb1d736b1c19f6abeee90c921a9320b67fedd016afshin salek ardakani - Sun Microsystems - Irvine United States sr, &sr->arg.dirop.fqi.fq_path.pn_path) != 0) {
eb1d736b1c19f6abeee90c921a9320b67fedd016afshin salek ardakani - Sun Microsystems - Irvine United States status = smb_validate_dirname(sr->arg.dirop.fqi.fq_path.pn_path);