Ian Jiang
2006-May-19 07:36 UTC
[Lustre-discuss] Problem about Lustre-1.2.4 patches for Suse
I am using the Lustre-1.2.4 and Suse SLES 9 RC5 (linux kernel 2.6.5-7.97). The lustre- 1.2.4/kernel_patches/series/2.6-suse.series was used to patch the linux kernel. It seemed that the patches iopen-2.6-suse and export_symbols-ext3-2.6-suse.patch didn''t work correctly. So I modified these tow patches and then got very well in the Lustre installing. Here are modifying details: (1) iopen-2.6-suse.patch Two parts are to be modified. And the file iopen-2.6-suse.patch.diff2 contains the details. # diff -c export_symbols-ext3-2.6-suse.patch.old export_symbols-ext3-2.6-suse.patch > export_symbols-ext3-2.6-suse.patch.diff2 # cat iopen-2.6-suse.patch.diff2 *** iopen-2.6-suse.patch.old Mon Jul 25 11:01:57 2005 --- iopen-2.6-suse.patch Mon Jul 25 11:02:48 2005 *************** *** 31,40 **** #include "acl.h" /* ! @@ -2402,6 +2403,9 @@ #endif - ei->i_rsv_window.rsv_end = EXT3_RESERVE_WINDOW_NOT_ALLOCATED; - + if (ext3_iopen_get_inode(inode)) + return; + --- 31,38 ---- #include "acl.h" /* ! @@ -2497,4 +2498,7 @@ #endif + if (ext3_iopen_get_inode(inode)) + return; + *************** *** 464,473 **** ================================================================== --- linux-2.6.5-sles9.orig/include/linux/ext3_fs.h 2004-11-09 02:15:44.616692352 +0300 +++ linux-2.6.5-sles9/include/linux/ext3_fs.h 2004-11-09 02:18:27.622911640 +0300 ! @@ -329,6 +329,8 @@ ! #define EXT3_MOUNT_POSIX_ACL 0x08000 /* POSIX Access Control Lists */ ! #define EXT3_MOUNT_RESERVATION 0x10000 /* Preallocation */ ! #define EXT3_MOUNT_BARRIER 0x20000 /* Use block barriers */ +#define EXT3_MOUNT_IOPEN 0x40000 /* Allow access via iopen */ +#define EXT3_MOUNT_IOPEN_NOPRIV 0x80000 /* Make iopen world-readable */ --- 462,470 ---- ================================================================== --- linux-2.6.5-sles9.orig/include/linux/ext3_fs.h 2004-11-09 02:15:44.616692352 +0300 +++ linux-2.6.5-sles9/include/linux/ext3_fs.h 2004-11-09 02:18:27.622911640 +0300 ! @@ -326,5 +326,7 @@ ! #define EXT3_MOUNT_POSIX_ACL 0x8000 /* POSIX Access Control Lists */ ! #define EXT3_MOUNT_BARRIER 0x10000 /* Use block barriers */ +#define EXT3_MOUNT_IOPEN 0x40000 /* Allow access via iopen */ +#define EXT3_MOUNT_IOPEN_NOPRIV 0x80000 /* Make iopen world-readable */ (2) export_symbols-ext3-2.6-suse.patch Modify line 5 to @@ -19,8 +19,11 @@ and delete line 15 #include <linux/rbtree.h> Ian Jiang ianjiang91@hotmail.com ---- Computer Architecture Laboratory Institute of Computing Technology Chinese Academy of Sciences Beijing,P.R.China _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/