Home > Veritas Storage Foundation™ File System Manual Pages
VXFS_NATTR_CHECK (3) |
|
Library Functions |
Table of contents
vxfs_nattr_check, vxfs_nattr_fcheck - check for the existence of named data streams
cc -I /opt/VRTS/include -L /opt/VRTS/lib
-l vxfsutil -ldl
#include <vxfsutil.h>
int vxfs_nattr_check(int char \(**path, int flags);
int vxfs_nattr_fcheck(int fd, int flags);
VRTSvxfs
vxfs_nattr_check()
and
vxfs_nattr_fcheck()
check for the existence of named data streams in a manner that depends
on the value of
flags.
The
vxfs_nattr_check()
function checks the pathname specified by
path
for the existence of named data streams.
The
vxfs_nattr_fcheck()
function checks the file descriptor specified by
fd
for the existence of named data streams.
Possible values for
flags
are:
-
NATTR_ENABLED
-
Checks whether named data streams are enabled on the file system
containing the file descriptor specified by
fd
or the pathname specified by
path.
If named data streams are enabled,
1 is returned.
Otherwise,
0 is returned.
-
NATTR_EXISTS
-
Checks for the existence of named data streams for the file descriptor
specified by
fd
or the pathname specified by
path.
If named data streams exist,
1 is returned.
Otherwise,
0 is returned.
vxfs_nattr_check()
and
vxfs_nattr_fcheck()
return 1 or 0 on success.
Otherise,
-1 is returned and
errno
is set to indicate an error.
-
ENOTSUP
-
The function invocation failed on the system and
could not locate the function in the dynamic link library (DLL).
-
EACCES
-
The file permissions does not allow the operation requested by function.
-
EINVAL
-
The value of
flags
or
fd
is invalid.
vxfs_nattr_open(3),
vxfs_nattr_link(3),
vxfs_nattr_rename(3),
vxfs_nattr_unlink(3),
vxfs_nattr_utimes(3)
Last updated: 7 May 2007
Copyright ©2009 Symantec Corporation
All rights reserved.