VERITAS File System 4.1 Administrator's Guide

Application Interface
Named Data Streams Programmatic Interface
Chapter 4 87
O_RDWR|O_CREAT, 0777); /* create attribute
attribute1 for file foo */
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.