7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * CDDL HEADER START
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * The contents of this file are subject to the terms of the
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * Common Development and Distribution License (the "License").
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * You may not use this file except in compliance with the License.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * See the License for the specific language governing permissions
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * and limitations under the License.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * When distributing Covered Code, include this CDDL HEADER in each
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * If applicable, add the following below this CDDL HEADER, with the
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * fields enclosed by brackets "[]" replaced with your own identifying
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * information: Portions Copyright [yyyy] [name of copyright owner]
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * CDDL HEADER END
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * Use is subject to license terms.
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern "C" {
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo#define REPARSED "svc:/system/filesystem/reparse:default"
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * This structure is shared between kernel code and user reparsed daemon.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * The 'res_len' must be defined as int, and not size_t, for 32-bit reparsed
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo * binary and 64-bit kernel code to work together.
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_parse(const char *reparse_data, nvlist_t *nvl);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_validate(const char *reparse_data);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_kderef(const char *svc_type, const char *svc_data,
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_vnode_parse(vnode_t *vp, nvlist_t *nvl);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_add(nvlist_t *nvl, const char *svc_type,
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo const char *svc_data);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_remove(nvlist_t *nvl, const char *svc_type);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_unparse(nvlist_t *nvl, char **stringp);
6a1af1a67532df169a657cce07140be64bdea084Richard Loweextern int reparse_create(const char *path, const char *data);
7a286c471efbab8562f7655a82931904703fffe0Dai Ngoextern int reparse_deref(const char *svc_type, const char *svc_data,
7a286c471efbab8562f7655a82931904703fffe0Dai Ngo#endif /* _FS_REPARSE_H */