a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * CDDL HEADER START
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * The contents of this file are subject to the terms of the
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Common Development and Distribution License (the "License").
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * You may not use this file except in compliance with the License.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * See the License for the specific language governing permissions
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * and limitations under the License.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * When distributing Covered Code, include this CDDL HEADER in each
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * If applicable, add the following below this CDDL HEADER, with the
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * fields enclosed by brackets "[]" replaced with your own identifying
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * information: Portions Copyright [yyyy] [name of copyright owner]
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * CDDL HEADER END
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Dispatch function for SMB2_QUERY_INFO
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * [MS-FSCC 2.5] If a file system does not implement ...
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * an Information Classs, NT_STATUS_INVALID_PARAMETER...
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Rosssmb2_qinfo_fs(smb_request_t *sr, smb_queryinfo_t *qi)
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross /* pg 153 */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsVolumeInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross LabelLength = smb_wcequiv_strlen(tree->t_volume);
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * NT has the "supports objects" flag set to 1.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross 0, /* Supports objects (b) */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross /* reserved (.) */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsSizeInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsFullSizeInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsDeviceInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsAttributeInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross /* This call is OK on all tree types. */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross default: /* gcc -Wuninitialized */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Todo: Store the FsAttributes in the tree object,
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * then just return that directly here.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross if ((tree->t_flags & SMB_TREE_CASEINSENSITIVE) == 0)
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsControlInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross if (!smb_tree_has_feature(sr->tid_tree, SMB_TREE_QUOTA)) {
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Strange error per. [MS-FSCC 2.5.2]
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * which means quotas not supported.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross 0, /* free space start filtering - MUST be 0 */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross 0, /* free space threshold - MUST be 0 */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross 0, /* free space stop filtering - MUST be 0 */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross SMB_QUOTA_UNLIMITED, /* default quota threshold */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross 0); /* pad bytes */
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * FileFsObjectIdInformation
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross/* ARGSUSED */