You are not logged in.
Pages: 1
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
Your description "it doesn't work as expected" is awfully thin.
Offline
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.isoThen 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
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
And what's the situation with the another project? https://github.com/fly-studio/merged-fuse
How can I compile it?
Offline
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
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 concatEdit: 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
Pages: 1