Veritas File System 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Application Interface
Named Data Streams Programmatic Interface
Chapter 4 71
write(afd, buf, 1024); /* writes to attribute file */
read(afd, buf, 1024); /* reads from attribute file */
dfd = vxfs_nattr_open(fd, ".", O_RDONLY);/* opens attribute
directory for file foo */
getdents(dfd, buf, 1024); /* reads directory entries for
attribute directory */
Namespace for Named Data Streams
Names starting with $vxfs: are reserved for VxFS. Creating a data stream where the name starts with
$vxfs: fail with an EINVAL error.
Behavior Changes in Other System Calls
Though the named data stream directory is hidden from the namespace, it is possible to open the name data
stream directory inode with a fchdir() or fchroot() call. Some of the attributes (such as "..") are not
defined for a named data streams directory.Any operation that accesses these fields can fail. Attempts to
create directories, symbolic links, or device files on a named data stream directory will fail.
VOP_SETATTR() done on a named data stream directory or named data stream inode will also fail.