exporting.rst (cdd38c5f1ce4398ec58fec95904b75824daab7b5) exporting.rst (304e9c83e80d5cbe20ab64ffa1fac9fc51d30bc9)
1:orphan:
2
3Making Filesystems Exportable
4=============================
5
6Overview
7--------
8

--- 108 unchanged lines hidden (view full) ---

117
118
119
120A file system implementation declares that instances of the filesystem
121are exportable by setting the s_export_op field in the struct
122super_block. This field must point to a "struct export_operations"
123struct which has the following members:
124
1:orphan:
2
3Making Filesystems Exportable
4=============================
5
6Overview
7--------
8

--- 108 unchanged lines hidden (view full) ---

117
118
119
120A file system implementation declares that instances of the filesystem
121are exportable by setting the s_export_op field in the struct
122super_block. This field must point to a "struct export_operations"
123struct which has the following members:
124
125 encode_fh (optional)
126 Takes a dentry and creates a filehandle fragment which can later be used
125 encode_fh (optional)
126 Takes a dentry and creates a filehandle fragment which may later be used
127 to find or create a dentry for the same object. The default
128 implementation creates a filehandle fragment that encodes a 32bit inode
129 and generation number for the inode encoded, and if necessary the
130 same information for the parent.
131
132 fh_to_dentry (mandatory)
133 Given a filehandle fragment, this should find the implied object and
134 create a dentry for it (possibly with d_obtain_alias).

--- 83 unchanged lines hidden ---
127 to find or create a dentry for the same object. The default
128 implementation creates a filehandle fragment that encodes a 32bit inode
129 and generation number for the inode encoded, and if necessary the
130 same information for the parent.
131
132 fh_to_dentry (mandatory)
133 Given a filehandle fragment, this should find the implied object and
134 create a dentry for it (possibly with d_obtain_alias).

--- 83 unchanged lines hidden ---