smb_trans2_set_file_information.c revision b89a8333f5e1f75ec0c269b22524bd2eccb972ba
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * SMB: trans2_set_file_information 2N/A * This request is used to set information about a specific file or 2N/A * subdirectory given a handle to the file or subdirectory. 2N/A * Client Request Value 2N/A * ========================== ========================================== 2N/A * Setup[0] TRANS2_SET_FILE_INFORMATION 2N/A * Parameter Block Encoding Description 2N/A * ========================== ========================================== 2N/A * USHORT Fid; Handle of file for request 2N/A * USHORT InformationLevel; Level of information requested 2N/A * USHORT Reserved; Ignored by the server 2N/A * The following InformationLevels may be set: 2N/A * Information Level Value 2N/A * ================================ ===== 2N/A * SMB_INFO_STANDARD 1 2N/A * SMB_INFO_QUERY_EA_SIZE 2 2N/A * SMB_SET_FILE_BASIC_INFO 0x101 2N/A * SMB_SET_FILE_DISPOSITION_INFO 0x102 2N/A * SMB_SET_FILE_ALLOCATION_INFO 0x103 2N/A * SMB_SET_FILE_END_OF_FILE_INFO 0x104 2N/A * The two levels below 0x101 are as described in the 2N/A * NT_SET_PATH_INFORMATION transaction. The requested information is 2N/A * placed in the Data portion of the transaction response. For the 2N/A * information levels greater than 0x100, the transaction response has 1 2N/A * parameter word which should be ignored by the client. 2N/A * 4.2.17.1 SMB_FILE_DISPOSITION_INFO 2N/A * Response Field Value 2N/A * ==================== =============================================== 2N/A * BOOLEAN A boolean which is TRUE if the file is marked 2N/A * FileIsDeleted for deletion 2N/A * 4.2.17.2 SMB_FILE_ALLOCATION_INFO 2N/A * Response Field Value 2N/A * ==================== =============================================== 2N/A * LARGE_INTEGER File Allocation size in number of bytes 2N/A * 4.2.17.3 SMB_FILE_END_OF_FILE_INFO 2N/A * Response Field Value 2N/A * ==================== =============================================== 2N/A * LARGE_INTEGER The total number of bytes that need to be 2N/A * traversed from the beginning of the file in 2N/A * order to locate the end of the file 2N/A * Undocumented things: 2N/A * Poorly documented information levels. Information must be infered 2N/A * from other commands. 2N/A * NULL Attributes means don't set them. NT sets the high bit to 2N/A * set attributes to 0. 2N/A * smb_com_trans2_set_file_information