From: wangdi Date: Fri, 2 May 2003 08:02:30 +0000 (+0000) Subject: add exports_2.4.20-rh.patch X-Git-Tag: v1_7_100~1^92~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7826fda14554054f1689f2807554f120ca1c1c35;p=fs%2Flustre-release.git add exports_2.4.20-rh.patch --- diff --git a/lustre/kernel_patches/patches/exports_2.4.20-rh.patch b/lustre/kernel_patches/patches/exports_2.4.20-rh.patch new file mode 100644 index 0000000..f63eb40 --- /dev/null +++ b/lustre/kernel_patches/patches/exports_2.4.20-rh.patch @@ -0,0 +1,57 @@ + + + + fs/ext3/Makefile | 2 ++ + fs/ext3/super.c | 2 +- + include/linux/fs.h | 1 + + kernel/ksyms.c | 5 +++++ + 4 files changed, 9 insertions(+), 1 deletion(-) + +--- rh-2.4.20/fs/ext3/Makefile~exports_2.4.20 2001-12-22 01:41:55.000000000 +0800 ++++ rh-2.4.20-root/fs/ext3/Makefile 2003-04-12 13:22:35.000000000 +0800 +@@ -9,6 +9,8 @@ + + O_TARGET := ext3.o + ++export-objs := super.o inode.o ++ + obj-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \ + ioctl.o namei.o super.o symlink.o + obj-m := $(O_TARGET) +--- rh-2.4.20/fs/ext3/super.c~exports_2.4.20 2003-04-11 14:04:48.000000000 +0800 ++++ rh-2.4.20-root/fs/ext3/super.c 2003-04-12 13:22:35.000000000 +0800 +@@ -1770,7 +1770,7 @@ static void __exit exit_ext3_fs(void) + unregister_filesystem(&ext3_fs_type); + } + +-EXPORT_NO_SYMBOLS; ++EXPORT_SYMBOL(ext3_bread); + + MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others"); + MODULE_DESCRIPTION("Second Extended Filesystem with journaling extensions"); +--- rh-2.4.20/include/linux/fs.h~exports_2.4.20 2003-04-11 14:05:08.000000000 +0800 ++++ rh-2.4.20-root/include/linux/fs.h 2003-04-12 13:23:49.000000000 +0800 +@@ -1026,6 +1026,7 @@ extern int unregister_filesystem(struct + extern struct vfsmount *kern_mount(struct file_system_type *); + extern int may_umount(struct vfsmount *); + extern long do_mount(char *, char *, char *, unsigned long, void *); ++struct vfsmount *do_kern_mount(const char *type, int flags, char *name, void *data); + + #define kern_umount mntput + +--- rh-2.4.20/kernel/ksyms.c~exports_2.4.20 2003-04-11 14:05:08.000000000 +0800 ++++ rh-2.4.20-root/kernel/ksyms.c 2003-04-12 13:22:35.000000000 +0800 +@@ -313,6 +313,11 @@ EXPORT_SYMBOL(dcache_dir_fsync); + EXPORT_SYMBOL(dcache_readdir); + EXPORT_SYMBOL(dcache_dir_ops); + ++/* lustre */ ++//EXPORT_SYMBOL(panic_notifier_list); ++EXPORT_SYMBOL(pagecache_lock_cacheline); ++EXPORT_SYMBOL(do_kern_mount); ++ + /* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */ + EXPORT_SYMBOL(default_llseek); + EXPORT_SYMBOL(dentry_open); + +_