Search:  
Gentoo Wiki

HOWTO_Reiser4_With_Gentoo-Sources

Contents

Introduction

This page is designed to help gentoo users install a custom ebuild which provides a version of the gentoo-sources kernel with reiser4 patches applied. At the time of writing the version of this patchset was: Reiser4-Gentoo-Sources-2.6.17 (Genpatches patchlevel 5) (Reiser4 patchlevel 3)

It was pointed out that we run a supposedly experimental (reiser4) filesystem on what would otherwise be a very stable patchset (gentoo-sources). The following quote seems appropriate: "We demand rigorously defined areas of doubt and uncertainty!" --Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

(Old) News

Wikipedia: Hans Reiser

Reiser filesystem development to continue

2.6.17-3 Reiser4 patchset was released on 28/07/06 due to instability in 2.6.17-1 patchset.

Changes are:

reiser4 for 2.6.17, version 3
it is made off 2.6.17-mm6 + recent bug fixes:
- missing txn_restart in readdir_common
- limit number of bytes to read to size of prefaulted area
- do not allow releasepage to detach page from jnode which is being handled by find_or_create_extent
- removal of special files fix
- readdir has to txn_restart, therefore, grab space for stat data update has to be forced
- missing long term lock unlocks in read's error handling code path
- check page's ref count in reiser4_releasepage
- file read fix: do not leak hint and context in page fault failure

- Delicates 11:09, 29 July 2006 (UTC)

What is Reiser4?

The following was shamelessly ripped from the kernel menuconfig page:

Reiser4 is a filesystem that performs all filesystem operations as atomic transactions, which means that it either performs a write, or it does not, and in the event of a crash it does not partially perform it or corrupt it.

It stores files in dancing trees, which are like balanced trees but faster. It packs small files together so that they share blocks without wasting space. This means you can use it to store really small files. It also means that it saves you disk space. It avoids hassling you with anachronisms like having a maximum number of inodes, and wasting space if you use less than that number.

Reiser4 is a distinct filesystem type from reiserfs (V3). It's therefore not possible to use reiserfs file systems with reiser4. To learn more about reiser4, go to http://reiser4.erudified.com

Genpatches info

If you want to find out about the genpatches patch series, check out their site. Additionally, information on which patches specifically are included in the current revision of the genpatches set are available here.

How do I implement Reiser4?

To implement reiser4 on a Linux system you will need the following:

  1. A Reiser4-Compatible kernel, ebuilt or otherwise.
  2. The reiser4progs package

If you want to install gentoo from scratch onto reiser4, check out Lxnay's Gentoo RR4 LiveCD HOWTO (but DO NOT USE THE LXNAY CDs, they contain older non-compatible versions of R4). A few you can use would be, lxnay's rr4 DVD, or the conrad livecd.

Alternatively you can use RIP (Recovery is Possible) bootdisc which includes latest reiser4-progs, and loads entirely into ram. From there you can manually procede with a gentoo stage1 - 3 install (but using the RIP environment in lieu of Gentoo's boot disc)... But be sure to have a r4 enabled kernel when building the kernel. Get RIP here : http://www.tux.org/pub/people/kent-robotti/looplinux/rip/

Installing The ebuild

To install reiser4-gentoo-sources, do the following: Create a local portage tree. In make.conf, make sure you've specified an overlay:

File: /etc/make.conf
PORTDIR_OVERLAY=/usr/local/portage

if it's not in there already

mkdir -p /usr/local/portage/sys-kernel/reiser4-gentoo-sources/


Copy the ebuild from the end of this page and paste it into your favorite text editor, saving the file in /usr/local/portage/sys-kernel/reiser4-gentoo-sources/


Digest the ebuild

ebuild /usr/local/portage/sys-kernel/reiser4-gentoo-sources/reiser4-gentoo-sources-2.6.17-r7.ebuild digest

If you want, include the symlink use flag to have it create/update the /usr/src/linux symlink for you:

echo "sys-kernel/reiser4-gentoo-sources symlink" >> /etc/portage/package.use


Now cross your fingers (optional) and emerge the ebuild!

echo "sys-kernel/reiser4-gentoo-sources" >> /etc/portage/package.keywords
emerge reiser4-gentoo-sources


Congratulations - your reiser4-compatible kernel source tree is ready to be configured & compiled. BUT - before you jump in, reiser4 has a few requirements:

If you do not do that, you will not even have the option of enabling the reiser4 filesystem in the kernel config.


If you did NOT use the symlinks use flag then you should manually change the link /usr/src/linux -> /usr/src/linux-2.6...

To do this:

cd /usr/src
rm linux
ln -s linux-2.6.[insert version here].reiser4-[insert revision number here] linux
eg: ln -s linux-2.6.17-reiser4-r7 linux


To configure, compile, and install the kernel, the standard process is used:

mount /boot (if you use a boot partition)
cd /usr/src/linux
make clean (failure to make clean before each kernel build can corrupt the kernel build)
make menuconfig
make && make modules_install && make install 


If you need a few pointers on compiling a kernel, consider the following:


If you need some info on grub configuration, check out these handy resources:

Trouble?

There's currently a running thread at the Gentoo Forums which you may find very useful.

genkernel users: you may face problem after --menuconfig finishes, try to copy .config .config.old in /usr/src/linux and run make oldconfig in the command line and make changes and then run genkernel again replacing --menuconfig to --oldconfig good luck!

Resources and Credits

Thanks.

The Ebuild Files

File: reiser4-gentoo-sources-2.6.14-r4.ebuild
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="5"
IUSE="ultra1"
inherit kernel-2
detect_version
detect_arch
R4V_MAJOR="14"
R4V=${R4V_MAJOR}-1
GPATCHVER=
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"

HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"
DESCRIPTION="Full sources including the gentoo patchset and the reiser4 patchset for the 
${KV_MAJOR}.${KV_MINOR} kernel tree"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${KV_MAJOR}.${KV_MINOR}.${R4V_MAJOR}/reiser4-for-${KV_MAJOR}.${KV_MINOR}.${R4V}.patch.gz"

UNIPATCH_LIST="${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}.${R4V_MAJOR}-${K_GENPATCHES_VER}.base.tar.bz2
${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}.${R4V_MAJOR}-${K_GENPATCHES_VER}.extras.tar.bz2
${DISTDIR}/reiser4-for-${KV_MAJOR}.${KV_MINOR}.${R4V}.patch.gz"


pkg_setup() {
 if use sparc; then
  # hme lockup hack on ultra1
  use ultra1 || UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1399_sparc-U1-hme-lockup.patch"
 fi
}

pkg_postinst() {
 postinst_sources

 echo

 if [ "${ARCH}" = "sparc" ]; then
  if [ x"`cat /proc/openprom/name 2>/dev/null`" \
    = x"'SUNW,Ultra-1'" ]; then
   einfo "For users with an Enterprise model Ultra 1 using the HME"
   einfo "network interface, please emerge the kernel using the"
   einfo "following command: USE=ultra1 emerge ${PN}"
  fi
 fi
 einfo "This is experimental. Make sure you enable deflate algorithm in"
 einfo "kernel encryption sub-section and make sure 8kb stacks are off in"
 einfo "the kernel hacking section."
 einfo "For more info on this patchset, and how to report problems, see:"
 einfo "${HOMEPAGE}"
}


File: reiser4-gentoo-sources-2.6.16-r2.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="4"
IUSE="ultra1"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

Added by anacleto44 18/04/06

File: reiser4-gentoo-sources-2.6.16-r8.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="10"
IUSE="ultra1"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches"

DESCRIPTION="Full sources including the gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_setup() {
	if use sparc; then
		# hme lockup hack on ultra1
		use ultra1 || UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1705_sparc-U1-hme-lockup.patch"
	fi
}

pkg_postinst() {
	postinst_sources

	echo

	if [ "${ARCH}" = "sparc" ]; then
		if [ x"`cat /proc/openprom/name 2>/dev/null`" \
			 = x"'SUNW,Ultra-1'" ]; then
			einfo "For users with an Enterprise model Ultra 1 using the HME"
			einfo "network interface, please emerge the kernel using the"
			einfo "following command: USE=ultra1 emerge ${PN}"
		fi
	fi
	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}


Added by WuDDjA 28/05/06

File: reiser4-gentoo-sources-2.6.16-r10.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="11"
IUSE="ultra1"
R4V="-4"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
	postinst_sources

	echo

	einfo "For more info on this patchset, see:"
	einfo "${HOMEPAGE}"
}

Added by Keyser_Soze 12/06/06 - New Namsys Patch 2.16.6 V4 Out 30/5/06 Removed r9 ebuild due to some VFS errors. Seems to be fixed now with gentoo patchset 11.


File: reiser4-gentoo-sources-2.6.17-r4.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="5"
IUSE="ultra1"
R4V="-3"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

linux-2.6.17 + genpatches-2.6.17-5.base + genpatches-2.6.17-5.extras + reiser4-for-2.6.17-3

- Delicates 11:09, 29 July 2006 (UTC)

File: reiser4-gentoo-sources-2.6.17-r7.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="9"
IUSE="ultra1"
R4V="-3"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

linux-2.6.17 + genpatches-2.6.17-9.base + genpatches-2.6.17-9.extras + reiser4-for-2.6.17-3

File: reiser4-gentoo-sources-2.6.19-r7.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="7"
IUSE="ultra1"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

Added by: Elv13 13/02/07

File: reiser4-gentoo-sources-2.6.20-r8.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="10"
IUSE="ultra1"
R4V=""
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the gentoo patchset for the
${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

Added by: Lyberis 20/07/07

File: reiser4-gentoo-sources-2.6.22-r5.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="6"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
	kernel-2_pkg_postinst
	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}

- added by WuDDjA 24/08/2007

File: reiser4-gentoo-sources-2.6.22-r8.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="9"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

- added by Viking76 15/10/2007

- bugfix by dp_sun 20/10/2007

File: reiser4-gentoo-sources-2.6.23-r1.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="1"
R4V=""
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} http://linuxhelp.150m.com/installs/reiser4-for-${PV}${R4V}.patch.bz2"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.bz2"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

-- 2007-11-10

Note: patching Gentoo's r3 patchset has been reported to cause soft lockups, the ebuild below now uses the stabilised r6 patchset and these problems appear to be gone. It is still r3 because it is the 3rd revision of the reiser4 patches for 2.6.23.

Latest "stable" (2.6.23)

Note that the path fetch URI has an underscore in it -- some web proxies don't like this :(

File: reiser4-gentoo-sources-2.6.23-r3.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="6"
R4V="-3"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} http://chichkin_i.zelnet.ru/namesys/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

-- 2008-01-28

Latest (2.6.24-r3)

File: reiser4-gentoo-sources-2.6.24-r2.ebuild
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="5"
R4V=""
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} http://chichkin_i.zelnet.ru/namesys/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

- added by SlackwareInAZ 02/17/08

Latest (2.6.25-r8)

File: reiser4-gentoo-sources-2.6.25-r8.ebuild
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="10"
R4V=""
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
HOMEPAGE="http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and the reiser4 patchset from namesys"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-${KV_MAJOR}.${KV_MINOR}/reiser4-for-${PV}.patch.bz2"
UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.bz2"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

- added by dp_sun 09/29/08

Suspend2 enabled ebuilds

File: reiser4-suspend2-sources-2.6.17-r7.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="9"
R4V="-3"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net http://www.namesys.com/v4/v4.html"

DESCRIPTION="Full sources including the Gentoo patchset, Software Suspend 2 and the Reiser4 patchset"

SUSPEND2_VERSION="2.2.7.1"
SUSPEND2_TARGET="2.6.17"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.tar.bz2"

UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.tar.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_STRICTORDER="yes"

RDEPEND="${RDEPEND}
	>=sys-apps/suspend2-userui-0.6.1
	>=sys-power/hibernate-script-1.12"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI} 
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
	postinst_sources

	echo

	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}

- ViperT 2006-10-04 14:35

File: reiser4-suspend2-sources-2.6.19-r7.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="7"
IUSE="ultra1"
R4V="-3"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net http://www.namesys.com/v4/v4.html"

DESCRIPTION="Full sources including the Gentoo patchset, Software Suspend 2 and the Reiser4 patchset"

SUSPEND2_VERSION="2.2.9.3"
SUSPEND2_TARGET="2.6.19.2"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"

UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.patch.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_STRICTORDER="yes"

RDEPEND="${RDEPEND}
        >=sys-apps/suspend2-userui-0.6.1
        >=sys-power/hibernate-script-1.12"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        postinst_sources

        echo

        einfo "For more info on this patchset, see:"
        einfo "${HOMEPAGE}"
}

- added by Chris 05/03/2007


File: reiser4-suspend2-sources-2.6.22-r2.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="6"
IUSE="ultra1"
R4V="-2"

inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net http://www.namesys.com/v4/v4.html"

DESCRIPTION="Full sources including the Gentoo patchset, Software Suspend 2 and the Reiser4 patchset"

SUSPEND2_VERSION="2.2.10"
SUSPEND2_TARGET="2.6.22"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.tuxonice.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"

UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.patch.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_STRICTORDER="yes"

RDEPEND="${RDEPEND}
                >=sys-apps/suspend2-userui-0.7.1
                >=sys-power/hibernate-script-1.95"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI} ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
}

- added by Timo 20.10.2007

Latest TuxOnIce (2.6.25-r1)

This ebuild have changed reiser4 patch download url, so it won't need namesys.com online (sry for my bad english) don't forget to mkdir /usr/local/portage/sys-kernel/reiser4-tuxonice-sources -p

File: reiser4-tuxonice-sources-2.6.25-r1.ebuild
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/tuxonice-sources/tuxonice-sources-2.6.25-r1.ebuild,v 1.1 2008/04/23 15:39:22 nelchael Exp $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="2"
IUSE="ultra1"
R4V="-2"

inherit kernel-2
detect_version
detect_arch

DESCRIPTION="TuxOnIce + Gentoo patchset sources + Reiser4 patchset sources"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.tuxonice.net http://www.namesys.com/v4/v4.html"

TUXONICE_VERSION="3.0-rc7"
TUXONICE_TARGET="2.6.25"
TUXONICE_SRC="tuxonice-${TUXONICE_VERSION}-for-${TUXONICE_TARGET}"
TUXONICE_URI="http://www.tuxonice.net/downloads/all/${TUXONICE_SRC}.patch.bz2"
REISER4_URI="http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-${KV_MAJOR}.${KV_MINOR}/reiser4-for-${PV}.patch.gz"
UNIPATCH_LIST="${DISTDIR}/${TUXONICE_SRC}.patch.bz2 ${DISTDIR}/reiser4-for-${PV}.patch.gz"
UNIPATCH_STRICTORDER="yes"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${TUXONICE_URI} ${REISER4_URI}"

KEYWORDS="~amd64 ~x86"

RDEPEND="${RDEPEND}
		>=sys-apps/tuxonice-userui-0.7.2
		>=sys-power/hibernate-script-1.97"

K_EXTRAELOG="If there are issues with this kernel, please direct any
queries to the tuxonice-users mailing list:
http://lists.tuxonice.net/mailman/listinfo/tuxonice-users/"

pkg_postinst() {
	kernel-2_pkg_postinst
	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}

- added by dart-pl 02.05.2008

Upgrades

To upgrade the ebuild, one simply needs to change the "K_GENPATCHES_VER" variable to what is in the corresponding gentoo-sources ebuild and the R4V variable to the patch version from namesys (usually -1)

If you've used a previous version of this patchset, in order to upgrade, you need only do the following:

1. Copy the old ebuild to the new version file-name.

2. Change the "K_GENPATCHES_VER" in the new ebiuld file to the number in the corresponding gentoo-sources ebuild. 3. Digest it

4. Emerge it.

Performance

The fine patrons of the gentoo-wiki have collected some links on what reiser4 can get you in terms of performance. Note that independent testing seems to return different (and usually much more understandable) results than the official reiser4 page. Please, if you know of a site with reiser4 benchmarks/test results, post a link here!

Useful Links

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Reiser4_With_Gentoo-Sources"

Last modified: Sun, 28 Sep 2008 20:07:00 +0000 Hits: 36,644