From: ccooper Date: Wed, 28 Apr 2004 14:45:53 +0000 (+0000) Subject: - chaos kernel only needs half of the old inode-max-readahead patch, so added a new... X-Git-Tag: 1.2.2~64 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9fd45a236b6fb7afb559903f05eba0c668ff3c61;p=fs%2Flustre-release.git - chaos kernel only needs half of the old inode-max-readahead patch, so added a new patch just for chaos-2.4.18 - updated series file for chaos-2.4.18 - updated tinderbox info for chaos-2.4.18 - lbuild: removed '-D' option to cvs which was tanking builds on most clusters, cascading check for rpmbuild and rpm as the method to make rpms --- diff --git a/lustre/kernel_patches/patches/inode-max-readahead-chaos-2.4.18.patch b/lustre/kernel_patches/patches/inode-max-readahead-chaos-2.4.18.patch new file mode 100644 index 0000000..6993eb1 --- /dev/null +++ b/lustre/kernel_patches/patches/inode-max-readahead-chaos-2.4.18.patch @@ -0,0 +1,11 @@ +--- linux-2.4.24-l32/include/linux/fs.h.inode_ramax 2004-03-14 13:15:49.000000000 -0800 ++++ linux-2.4.24-l32/include/linux/fs.h 2004-03-15 11:56:56.000000000 -0800 +@@ -410,6 +410,8 @@ + #define KERNEL_HAS_DIRECT_FILEIO /* Unfortunate kludge due to lack of foresight */ + int (*direct_fileIO)(int, struct file *, struct kiobuf *, unsigned long, int); + void (*removepage)(struct page *); /* called when page gets removed from the inode */ ++#define KERNEL_HAS_AS_MAX_READAHEAD ++ int (*max_readahead)(struct inode *); + }; + + struct address_space { diff --git a/lustre/kernel_patches/series/chaos-2.4.18 b/lustre/kernel_patches/series/chaos-2.4.18 index c69f42f..050e006 100644 --- a/lustre/kernel_patches/series/chaos-2.4.18 +++ b/lustre/kernel_patches/series/chaos-2.4.18 @@ -36,5 +36,5 @@ ext3-xattr-ptr-arith-fix.patch kernel_text_address-2.4.18-chaos.patch procfs-ndynamic-2.4.patch ext3-truncate-buffer-head.patch -inode-max-readahead-2.4.24.patch +inode-max-readahead-chaos-2.4.18.patch dcache_refcount_debug.patch diff --git a/lustre/kernel_patches/targets/chaos-2.4.18.target b/lustre/kernel_patches/targets/chaos-2.4.18.target index afd8a02..22ed765 100644 --- a/lustre/kernel_patches/targets/chaos-2.4.18.target +++ b/lustre/kernel_patches/targets/chaos-2.4.18.target @@ -1,7 +1,7 @@ -KERNEL=linux-2.4.18-p4smp-86chaos.tar.gz +KERNEL=linux-2.4.18-p4smp-87chaos.tar.gz SERIES=chaos-2.4.18 VERSION=2.4.18 -EXTRA_VERSION=p4smp-86chaos +EXTRA_VERSION=p4smp-87chaos RHBUILD=0 BASE_ARCHS="i686" diff --git a/lustre/scripts/lbuild b/lustre/scripts/lbuild index 52e6fde..3664e02 100755 --- a/lustre/scripts/lbuild +++ b/lustre/scripts/lbuild @@ -29,6 +29,8 @@ UP_ARCHS= DATE=$(date) +RPMBUILD= + cleanup() { true @@ -147,6 +149,14 @@ check_options() # TARGET_FILE="$TOPDIR/kernel_patches/targets/$TARGET.target" # [ -r "$TARGET_FILE" ] || \ # usage 1 "Target '$TARGET' was not found." + + RPMBUILD=`which rpmbuild` + if [ $? -ne 0 -o ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then + RPMBUILD=`which rpm` + if [ $? -ne 0 -o ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then + usage 1 "Could not find binary for making rpms (tried rpmbuild and rpm)." + fi + fi } uniqify() @@ -234,7 +244,7 @@ unpack_lustre() untar "$LUSTRE" [ -d lustre ] || ln -sf lustre* lustre else - cvs -d "$CVSROOT" -qz3 co -D "$DATE" "-r$TAG" -d "$DIRNAME" lustre || \ + cvs -d "$CVSROOT" -qz3 co -r "$TAG" -d "$DIRNAME" lustre || \ fatal 1 "There was an error checking out Lustre from CVS." echo "Creating lustre tarball..." tar zcf "$DIRNAME.tar.gz" "$DIRNAME" \ @@ -338,11 +348,11 @@ build() targets="--target $arch $targets" done - rpmbuild $targets -bb lustre-kernel-2.4.spec \ + $RPMBUILD $targets -bb lustre-kernel-2.4.spec \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $arch." - (( $DO_SRC )) && rpmbuild -bs lustre-kernel-2.4.spec \ + (( $DO_SRC )) && $RPMBUILD -bs lustre-kernel-2.4.spec \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building .src.rpm." }