You are not logged in.

#1 2020-06-17 04:04:48

bohokash
Member
Registered: 2019-11-30
Posts: 76

How can I use concatfs FUSE on Arch linux?

I have discovered this FUSE utility https://github.com/schlaile/concatfs
It would be very useful: it can handle multiple files as one, a virtual cat.
I can compile the program, but after that it doesn't work as expected.
Maybe is it incompatible with the current FUSE?
Is there any similar solution which works on Arch linux: handling two or more separate files as one, without joining them physically?

Last edited by bohokash (2020-06-17 04:05:30)

Offline

#2 2020-06-17 05:01:41

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: How can I use concatfs FUSE on Arch linux?

Your description "it doesn't work as expected" is awfully thin.

Offline

#3 2020-06-17 11:57:05

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: How can I use concatfs FUSE on Arch linux?

In fact, when I do the mounting, with the compiled executable binary, like "concatfs file-concat-.iso ./iso"
and the content of file-concat-.iso is:

file1.iso
file2.iso

Then the directory "iso" becomes simply inaccessible. I can't enter it, it becomes red, and prefixed with a ?-sign, showing that it is a broken simlink, I think.

However I found another FUSE plugin, with similar purpose: https://github.com/fly-studio/merged-fuse
But now I am unable to compile it. It throws error message when compiling the JSON part, json.hpp. Which comes from the project here https://github.com/nlohmann/json Reading the issues section it turns out, that compiling this with gcc causes sometimes troubles. Some trick is needed to compile this FUSE plugin in Arch Linux.

Last edited by bohokash (2020-06-17 11:57:40)

Offline

#4 2020-06-17 12:10:04

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: How can I use concatfs FUSE on Arch linux?

You're not supposed to point at the -concat- file, but at the folder containing that file. However, it doesn't work anyway, it'll just create something that looks like a hardlink to the src-dir. Bummer.

Offline

#5 2020-06-18 13:27:41

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: How can I use concatfs FUSE on Arch linux?

And what's the situation with the another project?  https://github.com/fly-studio/merged-fuse
How can I compile it?

Offline

#6 2020-06-18 14:07:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,376

Re: How can I use concatfs FUSE on Arch linux?

I'm getting XY vibes. Are you sure that concatenating files is what you actually want to do? What is your end goal once you have a successful concat FUSE implementation? What do you intend to do with the resulting file? Which kind of files do you intend to concat?

Last edited by V1del (2020-06-18 14:08:49)

Offline

#7 2020-06-18 16:26:18

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: How can I use concatfs FUSE on Arch linux?

concatfs seems to work fine:

git clone https://github.com/schlaile/concatfs
cd concatfs/src
gcc -Wall concatfs.c `pkg-config fuse --cflags --libs` -o concatfs

mkdir split concat
echo "A" >split/one
echo "B" >split/two
echo "C" >split/three
printf "%s\n" "one" "two" "three" >split/all-concat-.txt

./concatfs split concat
cat concat/all-concat-.txt
fusermount -u concat

Edit: You cannot write to such a file and I am unsure if random seek access is possible.

Last edited by progandy (2020-06-18 16:30:20)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB