diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-07-17 07:04:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:06 -0400 |
commit | d37065cd6d6bbe98fd4be14d6c9e64c0bfa124c5 (patch) | |
tree | 03a996d3d93a4d5ebd737519f7a6f959ecdbce0d /include | |
parent | 5ca29607331fe37980dc3b488793ef8b1409b722 (diff) |
knfsd: exportfs: add procedural interface for NFSD
Currently NFSD calls directly into filesystems through the export_operations
structure. I plan to change this interface in various ways in later patches,
and want to avoid the export of the default operations to NFSD, so this patch
adds two simple exportfs_encode_fh/exportfs_decode_fh helpers for NFSD to call
instead of poking into exportfs guts.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/exportfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h index fdc306fbba50..8872fe8392d6 100644 --- a/include/linux/exportfs.h +++ b/include/linux/exportfs.h | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | struct dentry; | 6 | struct dentry; |
7 | struct super_block; | 7 | struct super_block; |
8 | struct vfsmount; | ||
8 | 9 | ||
9 | 10 | ||
10 | /** | 11 | /** |
@@ -116,4 +117,10 @@ extern struct dentry *find_exported_dentry(struct super_block *sb, void *obj, | |||
116 | void *parent, int (*acceptable)(void *context, struct dentry *de), | 117 | void *parent, int (*acceptable)(void *context, struct dentry *de), |
117 | void *context); | 118 | void *context); |
118 | 119 | ||
120 | extern int exportfs_encode_fh(struct dentry *dentry, __u32 *fh, int *max_len, | ||
121 | int connectable); | ||
122 | extern struct dentry *exportfs_decode_fh(struct vfsmount *mnt, __u32 *fh, | ||
123 | int fh_len, int fileid_type, int (*acceptable)(void *, struct dentry *), | ||
124 | void *context); | ||
125 | |||
119 | #endif /* LINUX_EXPORTFS_H */ | 126 | #endif /* LINUX_EXPORTFS_H */ |