Linux(vfs)
カーネル2.6で追加されたnfsエクスポートのためのoperation
struct export_operations {
};~
struct export_operations {
decode_fh | NFS-FHを解析し、dentryを返却する |
encode_fh | dentryからNFS-FHを作成(引数で渡ってきた領域に設定)し、子のみか親子のNFS-FHかを判別する値を返却する |
get_name | 親ディレクトリの中に子供がいるかどうかvfs_readdirを発行し、調べ、見つかった場合は0を返却します。 |
get_parent | 子供のdentryを解析し、親ディレクトリのdentryを返却します |
_ | 子供のdentry→子供のinode→親("..")のlookupでメタデータ→親のinode→親のdentry |
get_dentry | ファイルハンドルを解析し、dentryを返却します |
_ | ファイルハンドル→inode→dentry |
find_exported_dentry | decode_fhの延長で呼んであげてください |
コメントをかく