You are not logged in.

#1 2024-06-16 14:52:02

funnypigrun
Member
Registered: 2019-07-14
Posts: 15

[SOLVED] Any workaround to increase parameter length limit?

Hi, I'm trying to use overlayfs to simplify managing some files in my system but I have ran into this error which seems to happen when the list of directories are too long.

+ sudo mount -t overlay overlay -o 'lowerdir=<long list of directories>,index=off,metacopy=off' target
mount: target: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

`sudo dmesg` had no error messages but I managed to find a forum discussion that might be related: https://www.linuxquestions.org/question … 175669053/

They haven't managed to find any solution it seems. Any other suggestions? Is there any settings I can change to increase the limit?

Last edited by funnypigrun (2024-06-17 09:56:47)

Offline

#2 2024-06-16 16:48:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,950

Re: [SOLVED] Any workaround to increase parameter length limit?

From the code referenced in https://www.linuxquestions.org/question … ost6088020 you're not gonna be able to increase anything here. At least not without compiling a custom kernel w/ altered page size.

to simplify managing some files in my system

What's the actual goal here? I see no upper directory, are you just trying to merge a bunch of directories into a single location?
You could stack those and first merge chunks into transient directories and then merge those in a second step?

Online

#3 2024-06-16 21:20:34

funnypigrun
Member
Registered: 2019-07-14
Posts: 15

Re: [SOLVED] Any workaround to increase parameter length limit?

Oh, whoops. I accidentally deleted "upperdir=" from my example but it is there in my test code. I'm trying to make something like a mod manager which loads mod files via "lowerdir=" then save all changes while the game or program is running to the "upperdir=."

Offline

#4 2024-06-17 05:33:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,950

Re: [SOLVED] Any workaround to increase parameter length limit?

And the option string for that is actually > 4095 byte?
(You can use "wc" to count it)

You cannot just overlay a common parent like/home/funnypigrun/.local/share/game ?
Are you loking for https://man.archlinux.org/man/extra/fus … layfs.1.en (which is reported to have "bad" performance, ie. the general fuse FS problem)?

Online

#5 2024-06-17 09:56:29

funnypigrun
Member
Registered: 2019-07-14
Posts: 15

Re: [SOLVED] Any workaround to increase parameter length limit?

Thanks, seth! I managed to mount everything at once when using fuse-overlayfs. I'll just go with fuse for now and see if the performance is good enough

Offline

Board footer

Powered by FluxBB