commit f3af0e7b7e488bbd76ed9213114d35c230298916
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 0000000..dc0c26a
--- /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 5245fb8..ac08397 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -683,6 +683,7 @@ static int unionfs_read_super(struct super_block *sb, void
*raw_data,
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 9d17304..d09fb57 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -75,6 +75,13 @@ extern struct inode_operations unionfs_symlink_iops;
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