[Unionfs] bug on rhel4

Urs Beyerle urs.beyerle at psi.ch
Mon Sep 17 11:04:26 EDT 2007


Hi,

You may want to try out building the unionfs kernel modules from a 
unionfs SRPM I built for the Scientific Linux 4 (= RHEL4) kernel.

Download the SRPM:
ftp://ftp.psi.ch/psi/livecd/SRPMS/unionfs-2.1.2-6.slp4.src.rpm

Install SRPM and build the UP/SMP kernel modules:
# rpm -ihv unionfs-2.1.2-6.slp4.src.rpm
# rpmbuild -ba --target i686 --define 'kernel 2.6.9-42.0.10.EL' unionfs.spec
or in your case, I guess
# rpmbuild -ba --target i686 --define 'kernel 
2.6.9-42.0.10.EL_lustre-1.4.10.1' unionfs.spec

for more options see unionfs.spec.

Cheers,

Urs





Stuart Midgley wrote:
> Evening
>
> I have been trying to get unionfs 2.1.3 (and previously 2.1.2) working 
> on a lustre rhel4 kernel
>
> 2.6.9-42.0.10.EL_lustre-1.4.10.1smp
>
> The patch to fs/Makefile failed to apply, but was easily applied by 
> hand. There was also an issue with compat.h with the redefinition of 
> atomic_inc_return which I found defined elsewhere in the kernel source 
> tree. The simple solution was
>
> #if 0
> static inline int atomic_inc_return(atomic_t *v)
> {
> atomic_inc(v);
> return atomic_read(v);
> }
> #endif
>
> So the kernel module now builds perfectly. However, when I try to 
> insert the module I get
>
> linux-2.6.9-42.0.10.EL_lustre-1.4.10.1/fs/unionfs # insmod unionfs.ko
> insmod: error inserting 'unionfs.ko': -1 Unknown symbol in module
>
> and dmesg is showing
>
> unionfs: Unknown symbol fsstack_copy_inode_size
>
> Now, I am really confused. fsstack_copy_inode_size is in fs/stack.c
>
> void fsstack_copy_inode_size(struct inode *dst, const struct inode *src)
> {
> i_size_write(dst, i_size_read((struct inode *)src));
> dst->i_blocks = src->i_blocks;
> }
> EXPORT_SYMBOL_GPL(fsstack_copy_inode_size);
>
> and should be in the kernel??? I would have thought the compile would 
> fail if it wasn't present? Of course, the kernel I'm running (binary 
> from a CFS supplied rpm) may not have this symbol...
>
> Ideas?
> Stu.
>
>
> -- 
> Stuart Midgley
> Manager Production Services
> DownUnder GeoSolutions
> stuartm at dugeo.com
>
>
>
> _______________________________________________
> unionfs mailing list: http://unionfs.filesystems.org/
> unionfs at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs



More information about the unionfs mailing list