fstyp_ident.3fstyp revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
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]
fstyp_ident 3FSTYP "20 Jun 2006" "SunOS 5.11" "File System Type Identification Library Functions"
NAME
fstyp_ident - identify file system attributes
SYNOPSIS

cc [ flag.\|.\|. ] file.\|.\|. -lfstyp  -lnvpair  [ library.\|.\|. ]
#include <libnvpair.h>
#include <libfstyp.h>

int fstyp_ident(fstyp_handle_t handle, const char *fstyp,
 const char **ident);
PARAMETERS

handle

Opaque handle returned by fstyp_init(3FSTYP).

fstype

Opaque argument that specifies the file system type to be identified.

ident

File system type returned if identification succeeds.

DESCRIPTION

The fstyp_ident() function attempts to identify a file system associated with the handle. If the function succeeds, the file system name is returned in the ident pointer.

If fstype is NULL, the fstyp_ident() function tries all available identification modules. If fstype is other than NULL, fstyp_ident() tries only the module for the file system type which is specified.

RETURN VALUES

The fstyp_ident() function returns 0 on success and an error value on failure. See fstyp_strerror(3FSTYP).

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityEvolving
MT-LevelMT-Safe
SEE ALSO

fstyp_init(3FSTYP), fstyp_mod_init(3FSTYP), fstyp_strerror(3FSTYP), libfstyp(3LIB), attributes(5)