Please enter search query.
Search <book_title>...
Veritas™ File System Programmer's Reference Guide - Solaris
Last Published:
2018-08-24
Product(s):
InfoScale & Storage Foundation (7.2)
Platform: Solaris
- Veritas File System software developer's kit
- File Change Log
- About the File Change Log file
- Record types
- File Change Log tunables
- Application programming interface for File Change Log
- API functions
- File Change Log record
- Copying File Change Log records
- Veritas File System and File Change Log upgrade and downgrade
- Reverse path name lookup
- Multi-volume support
- Named data streams
- Veritas File System I/O
- Caching advisories
- Extents
- Thin Reclamation
Listing named data streams
The named data streams for a file can be listed by calling getdents() on the named data stream directory inode, as shown in the following example.
To list named data streams
- To list the named data streams, create code similar to the following:
fd = open("foo", O_RDWR); /* open file foo */ afd = vxfs_nattr_open(fd, "stream1", O_RDWR|O_CREAT, 0777);/* create named data stream stream1 for file foo */ write(afd, buf, 1024); /* writes to named stream file */ read(afd, buf, 1024); /* reads from named stream file */ dfd = vxfs_nattr_open(fd, ".", O_RDONLY); /* opens named stream directory for file foo */ getdents(dfd, buf, 1024);/* reads directory entries for named stream directory */
- Use the reverse name lookup call to resolve a stream file to a pathname. The resulting pathname's format is similar to the following:
/mount_point/file_with_data_stream/./data_stream_file_name