Hi,
Here'a a question - is it possible to compile a single module (distributed in the kernel source tree) for the current CentOS kernel (2.6.9-5.0.5) without recompiling the entire kernel and all other modules.
I basically need reiserfs3 (nb. why is it disabled? it's a module, you use it, it doesn't wreck anything...) and I don't really want to change the rest of the kernel, and I'd like to have the minimum amount of fuss on future kernel upgrades.
Now I know external modules can be compiled without recompiling the kernel - question is how to do it for an internal kernel module.
What I've tried:
I've installed the kernel source code, copied over the kernel settings (the entire /usr/src/kernels/2.6.... dir) onto it. run make menuconfig and selected modular reiserfs. A diff of the new and old configs shows only reiser module (and suboptions for selinux) has been enabled. So no other changes have been made.
Now a make fs/reiserfs/ almost works, but it borks on some sort of .tmp_versions/reiserfs.mod problem (file not present). The resultant reiserfs.o doesn't work as reiserfs.ko (not sure if it should, though).. I can't run make modules_install without first compiling all the other modules... Should I just grep through the .config file and replace all (except reiser) =m with =n's (and rerun make oldconfig to make sure it's still consistent)? And then run make modules modules_install?
Any ideas? Basically all I want is reiserfs3 for the current CentOS4 kernel...
Cheers, MaZe.
On Tue, 3 May 2005 at 1:15pm, Maciej Zenczykowski wrote
I basically need reiserfs3 (nb. why is it disabled? it's a module, you use it, it doesn't wreck anything...) and I don't really want to change the rest of the kernel, and I'd like to have the minimum amount of fuss on future kernel upgrades.
Not answering the main question, but I would guess that this module is disabled for the same reason that XFS is -- support. Anything Red Hat distributes in RHEL they must support at a high level. They decided not to spend resources supporting XFS, and it looks like reiserfs is in the same boat.
Well, I thought they had an unsupported dir for that.
OTOH, since CentOS isn't really supported could we maybe turn reiserfs on in the centos kernel builds? If you want heavy-duty support you're not going for CentOS anyway... And it's a tad easier to make the few changes to the .config before the build system then it is to compile the module from source at home (which is effectively forcing a full kernel compile on me on a Celeron 366)... (although the reiserfs module is 2 MB's or so... so it could also be a matter of space...)
It would probably be best to make a kernel-module-reiserfs package and stick in extras/centosplus or somewhere... except I don't really know how to go about doing that :)
Well anyway, if anyone wants a reiserfs module for CentOS 4, I'll have it built by the end of today...
Cheers, MaZe.
On Tue, 3 May 2005, Joshua Baker-LePain wrote:
On Tue, 3 May 2005 at 1:15pm, Maciej Zenczykowski wrote
I basically need reiserfs3 (nb. why is it disabled? it's a module, you use it, it doesn't wreck anything...) and I don't really want to change the rest of the kernel, and I'd like to have the minimum amount of fuss on future kernel upgrades.
Not answering the main question, but I would guess that this module is disabled for the same reason that XFS is -- support. Anything Red Hat distributes in RHEL they must support at a high level. They decided not to spend resources supporting XFS, and it looks like reiserfs is in the same boat.
-- Joshua Baker-LePain Department of Biomedical Engineering Duke University _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, 3 May 2005 at 1:32pm, Maciej Zenczykowski wrote
Well, I thought they had an unsupported dir for that.
Not with RHEL4. Only with 3.
OTOH, since CentOS isn't really supported could we maybe turn reiserfs on in the centos kernel builds? If you want heavy-duty support you're not going for CentOS anyway... And it's a tad easier to make the few changes to the .config before the build system then it is to compile the module from source at home (which is effectively forcing a full kernel compile on me on a Celeron 366)... (although the reiserfs module is 2 MB's or so... so it could also be a matter of space...)
Centos stays as close to upstream as possible.
Maciej Zenczykowski wrote:
Well anyway, if anyone wants a reiserfs module for CentOS 4, I'll have it built by the end of today...
This is the kind of thing that could go in CentOS Plus. Someone would have to step up to build it and decide what goes into the package.
If they were built as addon RPM's then that might work well, but that is what GFS uses and it is a pain in the butt to maintain because GFS is also tied to specific userspace versions which don't coexist (though they reckon they have fixed that now).
John.
Cheers, MaZe.
On Tue, 3 May 2005, Joshua Baker-LePain wrote:
On Tue, 3 May 2005 at 1:15pm, Maciej Zenczykowski wrote
I basically need reiserfs3 (nb. why is it disabled? it's a module, you use it, it doesn't wreck anything...) and I don't really want to change the rest of the kernel, and I'd like to have the minimum amount of fuss on future kernel upgrades.
Not answering the main question, but I would guess that this module is disabled for the same reason that XFS is -- support. Anything Red Hat distributes in RHEL they must support at a high level. They decided not to spend resources supporting XFS, and it looks like reiserfs is in the same boat.
-- Joshua Baker-LePain Department of Biomedical Engineering Duke University _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2005-05-04 at 17:01 +1000, John Newbigin wrote:
Maciej Zenczykowski wrote:
Well anyway, if anyone wants a reiserfs module for CentOS 4, I'll have it built by the end of today...
This is the kind of thing that could go in CentOS Plus. Someone would have to step up to build it and decide what goes into the package.
If they were built as addon RPM's then that might work well, but that is what GFS uses and it is a pain in the butt to maintain because GFS is also tied to specific userspace versions which don't coexist (though they reckon they have fixed that now).
John.
I am looking at this, and I can build the basic reiserfs (and jfs, ntfs ... having issues with xfs though). The problem is that reiserfs and XFS require other parts of the kernel tree other than just their own directory in the fs part of the tree due to selinux and quotas, etc. so I don't have a releasable version that works with selinux.
Maybe in a couple weeks I might have something ... but Karanbir Singh and I are also working on CentOS-4.1 (i386 / x86_64) and developing a working CentOS-4.x on ppc64.
On Tue, 2005-05-03 at 07:10 -0400, Joshua Baker-LePain wrote:
On Tue, 3 May 2005 at 1:15pm, Maciej Zenczykowski wrote
I basically need reiserfs3 (nb. why is it disabled? it's a module, you use it, it doesn't wreck anything...) and I don't really want to change the rest of the kernel, and I'd like to have the minimum amount of fuss on future kernel upgrades.
Not answering the main question, but I would guess that this module is disabled for the same reason that XFS is -- support. Anything Red Hat distributes in RHEL they must support at a high level. They decided not to spend resources supporting XFS, and it looks like reiserfs is in the same boat.
And, following along on this track ... it is disabled in CentOS because it is disabled in RHEL and we are supposed to be cloning what RHEL does :). I might do a extended kernel for U1 (in centosplus) that has reiserfs support.
Since we are talking about file system support, you also need to make it be in the initrd image to see reiserfs filesystems at boot time...
I would say that your best bet is to just modify the kernel config file and recompile it in whole... then you are not fighting other potential problems. (That is what I would do if i needed reiserfs).
* Maciej Zenczykowski maze@cela.pl [2005-05-03 12:07:48]:
Now I know external modules can be compiled without recompiling the kernel - question is how to do it for an internal kernel module.
You might be able to build the ReiserFS code as if it was an external module, this is the trick I used with the Areca SATA RAID driver, although you need to make sure the code doesn't require access to internal kernel headers.
You need to have the kernel-(smp-)devel packages installed, not the kernel-source package. Basically, if you have the reiserfs source files in a directory, do:
$ make CONFIG_REISERFS_FS=m -C /usr/src/kernels/<kernel version> \ M=/path/to/reiserfs/sources modules $ make CONFIG_REI..... modules_install
As I said, this worked with the Areca drivers, not sure if it will work for the ReiserFS drivers, but it's probably worth a try.
HTH
Matt
Am Di, den 03.05.2005 schrieb Maciej Zenczykowski um 13:15:
Here'a a question - is it possible to compile a single module (distributed in the kernel source tree) for the current CentOS kernel (2.6.9-5.0.5) without recompiling the entire kernel and all other modules.
MaZe.
You had a close look at the release notes linked from the centos.org page?
http://mirror.centos.org/centos/4/docs/html/release-notes/as-x86/
Alexander
indeed what do you mean?
On Tue, 3 May 2005, Alexander Dalloz wrote:
Am Di, den 03.05.2005 schrieb Maciej Zenczykowski um 13:15:
Here'a a question - is it possible to compile a single module (distributed in the kernel source tree) for the current CentOS kernel (2.6.9-5.0.5) without recompiling the entire kernel and all other modules.
MaZe.
You had a close look at the release notes linked from the centos.org page?
http://mirror.centos.org/centos/4/docs/html/release-notes/as-x86/
Alexander
-- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp Serendipity 17:12:18 up 1 day, 1:18, load average: 1.01, 0.83, 0.71
Am Di, den 03.05.2005 schrieb Maciej Zenczykowski um 17:37:
indeed what do you mean?
Kernel section -> Note.
Alexander
Am Di, den 03.05.2005 schrieb Maciej Zenczykowski um 17:48:
Kernel section -> Note.
Yes, I've seen that note (and new of it), but I was always under the (possibly mistaken) impression that it's for out of kernel modules (like lufs and the like) - does it hold for in-kernel modules as well?
Yes. If you don't believe me, then please see Arjan's (Red Hat kernel guy) comment in bugzilla to a similar (ntfs instead of reiserfs) question:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129377#c3
MaZe.
Alexander