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
Querying named data streams
In the following example, a file named_stream_file was created with 20 named data streams using the API calls.
The named data streams are not displayed by the ls command. When named data streams are created, they are organized in a hidden directory. For example:
# ls -al named_stream_file -r-xr-lr-x1 root other 1024 Aug 12 09:49named_stream_file
To query named data streams
Use the getdents() or readdir_r() system call to query the named_stream_file file for its directory contents, which contains the 20 named stream files:
Attribute Directory contents for /vxfstest1/named_stream_file 0x1ff root other 1K Thu Aug 12 09:49:17 2004 . 0x565 root other 1K Thu Aug 12 09:49:17 2004 .. 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream0 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream1 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream2 . . . 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream17 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream18 0x177 root other 1K Thu Aug 12 09:49:17 2004 stream19