検索クエリーを入力してください
<book_title> を検索 ...
Veritas™ File System プログラマーズリファレンスガイド - Linux
Last Published:
2018-01-16
Product(s):
InfoScale & Storage Foundation (7.3.1)
- Veritas File System Software Developer's Kit
- FCL(File Change Log)
- マルチボリュームサポート
- 名前付きデータストリーム
- Veritas File System I/O
- シン再生
名前付きデータストリームの一覧表示
ファイルの名前付きデータストリームの一覧を表示するには、次の例に示すように、その名前付きデータストリームのディレクトリ i ノードで getdents() を呼び出します。
名前付きデータストリームを一覧表示するには
- 名前付きデータストリームを一覧表示するには、次のようなコードを作成します。
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 */
- 名前の逆引きルックアップコールを使って、ストリームファイルをパス名に解決します。 その結果、パス名の形式は次のようになります。
/mount_point/file_with_data_stream/./data_stream_file_name