検索クエリーを入力してください
<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
- シン再生
名前付きデータストリームの問い合わせ
次の例では、API コールを使って、20 個の名前付きデータストリームを持つファイル named_stream_file を作成しています。
名前付きデータストリームは、ls コマンドでは表示されません。名前付きデータストリームは、作成されると、隠しディレクトリに格納されます。次に例を示します。
# ls -al named_stream_file -r-xr-lr-x1 root other 1024 Aug 12 09:49named_stream_file
名前付きデータストリームに問い合わせるには
getdents() または readdir_r() システムコールを使い、named_stream_file ファイルに、隠しディレクトリの内容(20 個の名前付きデータストリームを含む)について問い合わせます。
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