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]
23 * Copyright (c) 2020 by Delphix. All rights reserved.
28 #include "libshare_impl.h"
31 * Enables SMB sharing for the specified share.
34 smb_enable_share(sa_share_impl_t impl_share
)
37 fputs("No SMB support in FreeBSD yet.\n", stderr
);
38 return (SA_NOT_SUPPORTED
);
41 * Disables SMB sharing for the specified share.
44 smb_disable_share(sa_share_impl_t impl_share
)
47 fputs("No SMB support in FreeBSD yet.\n", stderr
);
48 return (SA_NOT_SUPPORTED
);
52 * Checks whether the specified SMB share options are syntactically correct.
55 smb_validate_shareopts(const char *shareopts
)
58 fputs("No SMB support in FreeBSD yet.\n", stderr
);
59 return (SA_NOT_SUPPORTED
);
63 * Checks whether a share is currently active.
66 smb_is_share_active(sa_share_impl_t impl_share
)
73 smb_update_shares(void)
79 const sa_fstype_t libshare_smb_type
= {
80 .enable_share
= smb_enable_share
,
81 .disable_share
= smb_disable_share
,
82 .is_shared
= smb_is_share_active
,
84 .validate_shareopts
= smb_validate_shareopts
,
85 .commit_shares
= smb_update_shares
,