--- /dev/null
+--- 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 {
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
DATE=$(date)
+RPMBUILD=
+
cleanup()
{
true
# 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()
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" \
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."
}