aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/export.h
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@gmail.com>2008-07-20 16:31:56 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commitbe6e8dc0ba84029997075a1ec77b4ddb863cbe15 (patch)
treeba65e49acd8bc55bfd2719a9d6ce65a81ee037c6 /fs/btrfs/export.h
parent1a54ef8c11a0eaef59ff418089f109c27f8bd48d (diff)
NFS support for btrfs - v3
Date: Mon, 21 Jul 2008 02:01:56 +0530 Here's an implementation of NFS support for btrfs. It relies on the fixes which are going in to 2.6.28 for the NFS readdir/lookup deadlock. This uses the btrfs_iget helper introduced previously. [dwmw2: Tidy up a little, switch to d_obtain_alias() w/compat routine, change fh_type, store parent's root object ID where needed, fix some get_parent() and fs_to_dentry() bugs] Signed-off-by: Balaji Rao <balajirrao@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/export.h')
-rw-r--r--fs/btrfs/export.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/btrfs/export.h b/fs/btrfs/export.h
new file mode 100644
index 000000000000..074348a95841
--- /dev/null
+++ b/fs/btrfs/export.h
@@ -0,0 +1,19 @@
1#ifndef BTRFS_EXPORT_H
2#define BTRFS_EXPORT_H
3
4#include <linux/exportfs.h>
5
6extern const struct export_operations btrfs_export_ops;
7
8struct btrfs_fid {
9 u64 objectid;
10 u64 root_objectid;
11 u32 gen;
12
13 u64 parent_objectid;
14 u32 parent_gen;
15
16 u64 parent_root_objectid;
17} __attribute__ ((packed));
18
19#endif