Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
cc [ flag.\|.\|. ] file.\|.\|. -lfstyp -lnvpair [ library.\|.\|. ] #include <libnvpair.h> #include <libfstyp.h> const char *fstyp_strerror(fstyp_handle_t handle, int error);
Opaque handle returned by fstyp_init(3FSTYP). This argument is optional and can be 0.
Error value returned by a libfstyp function.
The fstyp_strerror() function maps the error value to an error message string and returns a pointer to that string. The returned string should not be overwritten.
The following error values are defined: FSTYP_ERR_NO_MATCH
No file system match.
Multiple file system matches.
Invalid handle.
Supplied offset is invalid or unsupported by the module.
Specified partition not found.
No such operation.
Device cannot be opened.
I/O error.
Out of memory.
Requested file system module not found.
Directory cannot be opened.
Module cannot be opened.
Invalid module version.
File system name length exceeds system limit.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Evolving |
MT-Level MT-Safe |
fstyp_init(3FSTYP), libfstyp(3LIB), attributes(5)