commit 59d8e7832e269a47c4a0520371229a4e0737f288
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Thu May 10 20:14:24 2007 -0400
export: added empty export.c using default export operations
diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c
new file mode 100644
index
0000000000000000000000000000000000000000..dc0c26aa9d3d14bf2e0feeb7c7c6228fc6546b2c
--- /dev/null
+++ b/fs/unionfs/export.c
@@ -0,0 +1,4 @@
+#include "unionfs.h"
+
+struct export_operations unionfs_export_ops = {
+};
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index
5245fb80fe7782a9d82ba1460d32921ff8101e73..ac08397d841a7699df295f0c8a7b77e8a7faab8d
100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -683,6 +683,7 @@ static int unionfs_read_super(struct sup
unionfs_read_unlock(sb);
sb->s_op = &unionfs_sops;
+ init_export_op(sb);
/* See comment next to the definition of unionfs_d_alloc_root */
sb->s_root = unionfs_d_alloc_root(sb);
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index
9d17304df116209dd332a828949280f2e6590917..d09fb5711e0aa88a7e6cd364190f6edbd0639f5d
100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -75,6 +75,13 @@ extern struct inode_operations unionfs_s
extern struct super_operations unionfs_sops;
extern struct dentry_operations unionfs_dops;
+#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE)
+extern struct export_operations unionfs_export_ops;
+#define init_export_op(sb) ({(sb)->s_export_op = &unionfs_export_ops;})
+#else
+#define init_export_op(sb) /* */
+#endif
+
/* How long should an entry be allowed to persist */
#define RDCACHE_JIFFIES (5*HZ)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs