Fix false assertion in dmu_tx_dirty_buf() on cloning
[zfs.git] / lib / libshare / smb.h
blob23d27c7b9134f9b45bc20c64ce745d2780999452
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or https://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright (c) 2011 Turbo Fredriksson <turbo@bayour.com>.
27 * The maximum SMB share name seems to be 254 characters, though good
28 * references are hard to find.
31 #define SMB_NAME_MAX 255
32 #define SMB_COMMENT_MAX 255
34 #define SHARE_DIR "/var/lib/samba/usershares"
35 #define NET_CMD_PATH "/usr/bin/net"
36 #define NET_CMD_ARG_HOST "127.0.0.1"
38 typedef struct smb_share_s {
39 char name[SMB_NAME_MAX]; /* Share name */
40 char path[PATH_MAX]; /* Share path */
41 char comment[SMB_COMMENT_MAX]; /* Share's comment */
42 boolean_t guest_ok; /* 'y' or 'n' */
44 struct smb_share_s *next;
45 } smb_share_t;