export_operations


Linux(vfs)

export_operations

カーネル2.6で追加されたnfsエクスポートのためのoperation

struct export_operations {

decode_fhNFS-FHを解析し、dentryを返却する
encode_fhdentryから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_dentrydecode_fhの延長で呼んであげてください

};

最新の20件

2006-12-20 2005-11-17 2005-11-09 2005-10-28 2005-10-24 2005-10-13

  • counter: 947
  • today: 1
  • yesterday: 0
  • online: 2