Contents
- Lustre 1.8.1.1, from binaries, with Linux 2.6.27.29 from openSUSE 11.1, on SLSE11
- Lustre 1.8.0.1, from sources, with Linux 2.6.22 vanilla, on Ubuntu 9.10
- (Recycled) Lustre 1.8.1.1, from sources, with Linux 2.6.27 from openSUSE 11.1, on Ubuntu 9.10
- (Recycled) Lustre 1.8.1.1, from sources, with Linux 2.6.27 vanilla, on Ubuntu 9.10
- Patches
Lustre 1.8.1.1, from binaries, with Linux 2.6.27.29 from openSUSE 11.1, on SLSE11
- environment:
export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
- workbench folders:
( set -x -e -u -o pipefail || exit 1 mkdir ./lustre-workbench cd ./lustre-workbench mkdir ./archives ) && cd ./lustre-workbench
- downloads:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-source-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=XoNIBe.mh2gAAAEkOudqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-source-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-source-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/kernel-ib-1.4.2-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=WaJIBe.m5oAAAAEklOZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/kernel-ib-1.4.2-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O kernel-ib-1.4.2-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/kernel-ib-1.4.2-2.6.27.29_0.1_default.x86_64.rpm?BundledLineItemUUID=bFFIBe.mDz8AAAEknuZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/kernel-ib-1.4.2-2.6.27.29_0.1_default.x86_64.rpm' -O kernel-ib-1.4.2-2.6.27.29_0.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=3qZIBe.m3nsAAAEkqeZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=.gxIBe.mc0cAAAEk3uZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-ldiskfs-3.0.9-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=1iVIBe.mwg4AAAEk9OZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-ldiskfs-3.0.9-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-ldiskfs-3.0.9-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-client-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=vt9IBe.ma7wAAAEk_uZqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-client-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-client-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-client-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm?BundledLineItemUUID=2JpIBe.mzwkAAAEkCOdqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/lustre-client-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm' -O lustre-client-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/kernel-lustre-default-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm?BundledLineItemUUID=zR1IBe.mTucAAAEkL.dqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/kernel-lustre-default-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm' -O kernel-lustre-default-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/kernel-lustre-default-base-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm?BundledLineItemUUID=R6hIBe.mNkMAAAEkbedqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/kernel-lustre-default-base-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm' -O kernel-lustre-default-base-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/kernel-lustre-default-extra-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm?BundledLineItemUUID=p7dIBe.m0KQAAAEkTudqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/kernel-lustre-default-extra-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm' -O kernel-lustre-default-extra-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm # wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/e2fsprogs-1.41.6.sun1-0suse.x86_64.rpm?BundledLineItemUUID=lapIBe.mIUkAAAEkY.dqScDZ&OrderID=ceRIBe.mIiQAAAEkJ.ZqScDZ&ProductID=6CNIBe.nWI8AAAEkBvIcDko4&FileName=/e2fsprogs-1.41.6.sun1-0suse.x86_64.rpm' -O e2fsprogs-1.41.6.sun1-0suse.x86_64.rpm wget 'http://downloads.lustre.org/public/tools/e2fsprogs/1.41.6.sun1/sles11/x86_64/e2fsprogs-1.41.6.sun1-0suse.x86_64.rpm' wget 'http://downloads.lustre.org/public/tools/e2fsprogs/1.41.6.sun1/sles11/x86_64/libblkid1-1.41.6.sun1-0suse.x86_64.rpm' wget 'http://downloads.lustre.org/public/tools/e2fsprogs/1.41.6.sun1/sles11/x86_64/libcom_err2-1.41.6.sun1-0suse.x86_64.rpm' wget 'http://downloads.lustre.org/public/tools/e2fsprogs/1.41.6.sun1/sles11/x86_64/libext2fs2-1.41.6.sun1-0suse.x86_64.rpm' wget 'http://downloads.lustre.org/public/tools/e2fsprogs/1.41.6.sun1/sles11/x86_64/libuuid1-1.41.6.sun1-0suse.x86_64.rpm' )
- Linux kernel install (need to have version 2.6.7.29) (for server and client):
( set -x -e -u -o pipefail || exit 1 sudo zypper install kernel-default-base=2.6.27.29 sudo zypper install kernel-default=2.6.27.29 sudo zypper install kernel-default-extra=2.6.27.29 sudo zypper addlock kernel-default-base=2.6.27.29 sudo zypper addlock kernel-default=2.6.27.29 sudo zypper addlock kernel-default-extra=2.6.27.29 )
- Linux modules install (for server):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo zypper -n install ./kernel-lustre-default-base-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm sudo zypper -n install ./kernel-lustre-default-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm sudo zypper -n install ./kernel-lustre-default-extra-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm )
- Lustre modules install (for server):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo zypper -n install ./lustre-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm sudo zypper -n install ./lustre-ldiskfs-3.0.9-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm sudo zypper -n install ./lustre-client-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm # !!!!WTF!!!! put `allow_unsupported_modules 1` # sudo -e /etc/modprobe.d/unsupported-modules )
- Lustre modules install (for client):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo zypper -n install ./lustre-client-modules-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm # !!!!WTF!!!! put `allow_unsupported_modules 1` # sudo -e /etc/modprobe.d/unsupported-modules )
- Lustre tools install (for server):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo zypper -n install ./lustre-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm )
- Lustre tools (e2fsck) install (override) (for server):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo rpm --install --force ./e2fsprogs-1.41.6.sun1-0suse.x86_64.rpm sudo rpm --install --force ./libblkid1-1.41.6.sun1-0suse.x86_64.rpm sudo rpm --install --force ./libcom_err2-1.41.6.sun1-0suse.x86_64.rpm sudo rpm --install --force ./libext2fs2-1.41.6.sun1-0suse.x86_64.rpm sudo rpm --install --force ./libuuid1-1.41.6.sun1-0suse.x86_64.rpm )
- Lustre tools install (for client):
( set -x -e -u -o pipefail || exit 1 cd ./archives sudo zypper -n install ./lustre-client-1.8.1.1-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm )
- Linux Infini Band modules (for server) (incompatible with those for the client):
( set -x -e -u -o pipefail || exit 1 cd ./archives # sudo zypper -n remove kernel-ib sudo zypper -n install ./kernel-ib-1.4.2-2.6.27.29_0.1_lustre.1.8.1.1_default.x86_64.rpm )
Lustre InfiniBand modules (for client) (incompatible with those for the server):
( set -x -e -u -o pipefail || exit 1 cd ./archives # sudo zypper -n remove kernel-ib sudo zypper -n install ./kernel-ib-1.4.2-2.6.27.29_0.1_default.x86_64.rpm )
InfiniBand tools (for server and client):
( set -x -e -u -o pipefail || exit 1 sudo zypper -n install ofed infiniband-diags )
Lustre 1.8.0.1, from sources, with Linux 2.6.22 vanilla, on Ubuntu 9.10
- build dependencies:
( set -x -e -u -o pipefail || exit 1 sudo -H aptitude -y install gcc rpm test "$( readlink -f /bin/sh )" == /bin/bash || echo NOK )
- workbench folders:
( set -x -e -u -o pipefail || exit 1 mkdir ./lustre-workbench cd ./lustre-workbench mkdir ./archives ./sources ./install ) && cd ./lustre-workbench
- Lustre source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-1.8.0.1.tar.gz?BundledLineItemUUID=MpFIBe.oZQAAAAEkbeExcLul&OrderID=dKBIBe.oEmwAAAEkiOAxcLul&ProductID=6_FIBe.o16oAAAEiKT5MwQlW&FileName=/lustre-1.8.0.1.tar.gz' -O lustre-1.8.0.1.tar.gz )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources tar -xzf ../archives/lustre-1.8.0.1.tar.gz )
- download:
- Linux source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.14.tar.bz2' -O linux-2.6.22.14.tar.bz2 )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources tar -xjf ../archives/linux-2.6.22.14.tar.bz2 )
- download:
- Linux patches:
- Lustre patches:
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.22.14 SERIES=2.6.22-vanilla cat ../lustre-1.8.0.1/lustre/kernel_patches/series/"$SERIES.series" | tr -d ' ' \ | xargs -L 1 -I {} cat '../lustre-1.8.0.1/lustre/kernel_patches/patches/{}' \ | patch -p1 -f -s )
- Lustre patches:
- Linux config:
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.22.14 make defconfig ARCH=x86_64 )
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.22.14 CONFIG=kernel-2.6.22-2.6-vanilla-x86_64-smp.config cp ../lustre-1.8.0.1/lustre/kernel_patches/kernel_configs/"$CONFIG.config" ./.config yes '' | make oldconfig ARCH=x86_64 )
- Linux prepare:
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.22.14 make -j 24 prepare ARCH=x86_64 make -j 24 include/ ARCH=x86_64 make -j 24 scripts/ ARCH=x86_64 )
- Linux build:
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.22.14 make -j 24 bzImage ARCH=x86_64 make -j 24 modules ARCH=x86_64 )
- Lustre patches:
( set -x -e -u -o pipefail || exit 1 cd ./sources/lustre-1.8.0.1 patch -p1 <../../patches/lustre-1.8.0.1/fix.patch )
- Lustre config:
( set -x -e -u -o pipefail || exit 1 cd ./sources/lustre-1.8.0.1 ./configure --prefix=/opt/lustre --with-linux="$( readlink -f ../linux-2.6.22.14 )" )
- Lustre build:
( set -x -e -u -o pipefail || exit 1 cd ./sources/lustre-1.8.0.1 make -j 24 all )
- Lustre (fake) install:
( set -x -e -u -o pipefail || exit 1 cd ./sources/lustre-1.8.0.1 make -j 24 install DESTDIR="$( readlink -f ../../install )" )
- Lustre package:
( set -x -e -u -o pipefail || exit 1 tar -cjf ./install.tar.bz2 -C ./install . )
(Recycled) Lustre 1.8.1.1, from sources, with Linux 2.6.27 from openSUSE 11.1, on Ubuntu 9.10
- Lustre source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-1.8.1.1.tar.gz?BundledLineItemUUID=E3hIBe.ovkIAAAEkSEYxcLrs&OrderID=wptIBe.o180AAAEkC0UxcLrs&ProductID=VgZIBe.n3DcAAAEk7vIcDko4&FileName=/lustre-1.8.1.1.tar.gz' -O lustre-1.8.1.1.tar.gz )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources tar -xzf ../archives/lustre-1.8.1.1.tar.gz )
- download:
- Linux source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://download.opensuse.org/source/distribution/11.1/repo/oss/suse/src/kernel-source-2.6.27.7-9.1.src.rpm' -O kernel-source-2.6.27.7-9.1.src.rpm )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources mkdir ./kernel-source-2.6.27.7-9.1 cd ./kernel-source-2.6.27.7-9.1 mkdir ./linux-2.6.27 cd ./linux-2.6.27 git init git fetch 'git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git' refs/heads/master:refs/heads/stable git branch suse v2.6.27.7 git checkout suse mv ./.git ../.linux-2.6.27.git find . -delete mv ../.linux-2.6.27.git ./.git )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1 rpm2cpio ../../archives/kernel-source-2.6.27.7-9.1.src.rpm | cpio -i --force-local find . -name '*.bz2' -exec tar -xjf {} \; )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 git add -A . git commit -m 'Imported sources from kernel-source-2.6.27.7-9.1.src.rpm .' )
- download:
- Linux patches:
- OpenSUSE patches:
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 ../guards "$( ../arch-symbols )" <../series.conf \ | xargs -L 1 -I {} cat '../{}' \ | patch -p1 -f -s )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 git add -A . git commit -m 'Applied patches from kernel-source-2.6.27.7-9.1.src.rpm .' )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 git merge v2.6.27.29 )
- Lustre patches:
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 SERIES=2.6-sles11 cat ../../lustre-1.8.1.1/lustre/kernel_patches/series/"$SERIES.series" | tr -d ' ' \ | xargs -L 1 -I {} cat '../../lustre-1.8.1.1/lustre/kernel_patches/patches/{}' \ | patch -p1 -f -s )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 git add -A . git commit -m 'Applied patches from Lustre.' )
- OpenSUSE patches:
- Linux config:
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 make defconfig ARCH=x86_64 )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 CONFIG=kernel-2.6.27-2.6-sles11-x86_64 cp ../../lustre-1.8.1.1/lustre/kernel_patches/kernel_configs/"$CONFIG.config" ./.config yes '' | make oldconfig ARCH=x86_64 )
(Recycled) Lustre 1.8.1.1, from sources, with Linux 2.6.27 vanilla, on Ubuntu 9.10
- Lustre source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/lustre-1.8.1.1.tar.gz?BundledLineItemUUID=E3hIBe.ovkIAAAEkSEYxcLrs&OrderID=wptIBe.o180AAAEkC0UxcLrs&ProductID=VgZIBe.n3DcAAAEk7vIcDko4&FileName=/lustre-1.8.1.1.tar.gz' -O lustre-1.8.1.1.tar.gz )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources tar -xzf ../archives/lustre-1.8.1.1.tar.gz )
- download:
- Linux source code:
- download:
( set -x -e -u -o pipefail || exit 1 cd ./archives wget 'http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.38.tar.bz2' -O linux-2.6.27.38.tar.bz2 )
- extract:
( set -x -e -u -o pipefail || exit 1 cd ./sources tar -xjf ../archives/linux-2.6.27.38.tar.bz2 )
- download:
- Linux patches:
- Lustre patches:
( set -x -e -u -o pipefail || exit 1 cd ./sources/linux-2.6.27.38 cat ../lustre-1.8.1.1/lustre/kernel_patches/series/2.6-sles11.series | tr -d ' ' \ | xargs -L 1 -I {} cat '../lustre-1.8.1.1/lustre/kernel_patches/patches/{}' \ | patch -p1 -f -s )
- Lustre patches:
- Linux config:
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 make defconfig ARCH=x86_64 )
( set -x -e -u -o pipefail || exit 1 cd ./sources/kernel-source-2.6.27.7-9.1/linux-2.6.27 CONFIG=kernel-2.6.27-2.6-sles11-x86_64 cp ../../lustre-1.8.1.1/lustre/kernel_patches/kernel_configs/"$CONFIG.config" ./.config yes '' | make oldconfig ARCH=x86_64 )
Patches
- Lustre patch:
diff --git a/libsysio/include/sysio.h b/libsysio/include/sysio.h index e64ead5..5b8bec8 100644 --- a/libsysio/include/sysio.h +++ b/libsysio/include/sysio.h @@ -279,11 +279,11 @@ extern int SYSIO_INTERFACE_NAME(umount)(const char *target); extern DIR *SYSIO_INTERFACE_NAME(opendir)(const char *name); extern int SYSIO_INTERFACE_NAME(closedir)(DIR *dir); extern struct dirent *SYSIO_INTERFACE_NAME(readdir)(DIR *dir); -extern int SYSIO_INTERFACE_NAME(scandir)(const char *dir, - struct dirent ***namelist, - int(*filter)(const struct dirent *), - int(*compar)(const void *, - const void *)); +//extern int SYSIO_INTERFACE_NAME(scandir)(const char *dir, +// struct dirent ***namelist, +// int(*filter)(const struct dirent *), +// int(*compar)(const void *, +// const void *)); #if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) extern ssize_t SYSIO_INTERFACE_NAME(getdirentries)(int fd, char *buf, diff --git a/libsysio/include/xtio.h b/libsysio/include/xtio.h index a5798f1..ea8db06 100644 --- a/libsysio/include/xtio.h +++ b/libsysio/include/xtio.h @@ -137,10 +137,10 @@ extern ioid_t SYSIO_INTERFACE_NAME(ipread64)(int fd, /* * Read into buffers mapped by an iovec from file at given offset. */ -extern ssize_t SYSIO_INTERFACE_NAME(preadv)(int fd, - const struct iovec *iov, - size_t count, - off_t offset); +//extern ssize_t SYSIO_INTERFACE_NAME(preadv)(int fd, +// const struct iovec *iov, +// size_t count, +// off_t offset); #ifdef _LARGEFILE64_SOURCE /* @@ -256,10 +256,10 @@ extern ioid_t SYSIO_INTERFACE_NAME(ipwrite64)(int fd, /* * Write from buffers mapped by an iovec to file at given offset. */ -extern ssize_t SYSIO_INTERFACE_NAME(pwritev)(int fd, - const struct iovec *iov, - size_t count, - off_t offset); +//extern ssize_t SYSIO_INTERFACE_NAME(pwritev)(int fd, +// const struct iovec *iov, +// size_t count, +// off_t offset); #ifdef _LARGEFILE64_SOURCE /* diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index e0128a3..f4826cf 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -631,7 +631,7 @@ int jt_dbg_debug_kernel(int argc, char **argv) return 1; } if (argc > 1) { - fdout = open(argv[1], O_WRONLY | O_CREAT); + fdout = open(argv[1], O_WRONLY | O_CREAT, 0777); if (fdout < 0) { fprintf(stderr, "fopen(%s) failed: %s\n", argv[1], strerror(errno));