Skip to contentSkip to conversation

Increasing REISERFS_LINK_MAX

DISCUSSION Marco Gruss 2 participants 2 messages Oct 5, 2007

lore
Share & tools
lore
#0 lore raw

Hey there,

I'm using reiserfs on a system that keeps backups. In order to save space, I make very heavy use of hardlinks (using cp -al for duplicating a tree and also using the excellent rdfind from
http://hem.bredband.net/pauls/rdfind/rdfind.html). I have now run into the maximum link limit per file of 63535 (2^16-1001).

First thought: "Just increase it and go on". Then I thought that this limit probably isn't there for fun; so here's my
question: Is it safe to increase REISERFS_LINK_MAX exceeding unsigned int, or will horrible breakage occur?

Thanks in advance for any input.

Marco

#1 lore raw

I think it should be safe to increase REISERFS_LINK_MAX to a number smaller than 2^32, since nlink is 32bits now. I sugguest you can try it in user mode linux or something like qemu or vmware first.

Quoted 16 lines · Marco Gruss

Hey there,

I'm using reiserfs on a system that keeps backups. In order to save space, I make very heavy use of hardlinks (using cp -al for duplicating a tree and also using the excellent rdfind from
http://hem.bredband.net/pauls/rdfind/rdfind.html). I have now run into the maximum link limit per file of 63535 (2^16-1001).

First thought: "Just increase it and go on". Then I thought that this limit probably isn't there for fun; so here's my
question: Is it safe to increase REISERFS_LINK_MAX exceeding unsigned int, or will horrible breakage occur?

Thanks in advance for any input.

Marco