Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] unionfs in 3.2.x
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Sat Jan 14, 2012 3:53 pm    Post subject: [solved] unionfs in 3.2.x Reply with quote

Hi there.

For my squash-portage I use Unionfs. The easiest thing for me is still just patching the kernel instead of aufs from portage. The need patches I got from this place: http://download.filesystems.org/unionfs/unionfs-2.x/

Unfortunately there isn't a patch for linux 3.2.0 available. The patch for 3.1.0 I can apply, but compiling the kernel gives me an error:
Code:
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CC      fs/unionfs/subr.o
fs/unionfs/subr.c: In function ‘unionfs_copy_attr_all’:
fs/unionfs/subr.c:94:2: error: assignment of read-only member ‘i_nlink’
make[2]: *** [fs/unionfs/subr.o] Error 1
make[1]: *** [fs/unionfs] Error 2
make: *** [fs] Error 2


Any ideas to get it working?


Last edited by musv on Sun Feb 12, 2012 11:50 am; edited 1 time in total
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 437

PostPosted: Sat Jan 14, 2012 7:49 pm    Post subject: Reply with quote

ITs because of this: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=d211858837ff8d8e31942ca7d27e6e08b3b46f5e

i_nlink shouldn't be modified directly anymore:
include/linux/fs.h wrote:
Filesystems may only read i_nlink directly. They shall use the
following functions for modification:

(set|clear|inc|drop)_nlink
inode_(inc|dec)_link_count
Back to top
View user's profile Send private message
morpheus2051
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 94

PostPosted: Tue Jan 31, 2012 3:13 pm    Post subject: Reply with quote

Try this patch http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/kernel/kernel-unionfs.patch?revision=1.17&view=co.
It works for me with gentoo-sources-3.2.1-r2 just fine.
Give it a try.[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum