DSM-G600, DNS-323 and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-03-18 04:17:55

pof
Member
From: Barcelona
Registered: 2008-03-07
Posts: 28
Website

Fuse packages for fonz fun_plug

I have compiled fuse-2.7.3 packages for fonz fun_plug 0.3/0.4 and 0.5, posting them here hoping that someone else finds them useful.

Fonz fun_plug 0.3/0.4:

Code:

# wget http://pof.eslack.org/dns323/fuse-2.7.3.tgz
# funpkg.sh fuse-2.7.3.tgz
# ${FUNPLUGDIR}/start/fuse.sh start

Fonz fun_plug 0.5-experimental:

Code:

# wget http://pof.eslack.org/dns323/fuse-2.7.3-ffp05.tgz
# funpkg fuse-2.7.3-ffp05.tgz
# /ffp/start/fuse.sh start

With FUSE it is possible to implement a fully functional filesystem in a userspace program, see some examples.

Enjoy ;-)

Offline

 

#2 2008-03-18 22:57:08

jules
Member
Registered: 2008-01-26
Posts: 78

Re: Fuse packages for fonz fun_plug

Hmm, interesting stuff, i'll take a look at it.


CH3SNAS - Black Box Ed. • FW:1.03b6a • 2 x WD5000AAKS

Offline

 

#3 2008-10-07 23:22:52

jordan_d
Member
From: France
Registered: 2008-05-31
Posts: 22

Re: Fuse packages for fonz fun_plug

Hi, I tried to launch fuse with your package, but I got this error message:

Code:

# ./fuse.sh start
/ffp/bin/fusermount
Loading fuse module.
Mounting fuse control filesystem failed!

I don't understand why. Can someone explain me, or help me to find the problem? Thank you wink

Offline

 

#4 2008-10-07 23:50:51

puterboy
Member
Registered: 2008-09-18
Posts: 244

Re: Fuse packages for fonz fun_plug

Would this then allow use of the user-space ntfs-3g module?
If so, has anybody compiled it and tested it?

Offline

 

#5 2008-10-29 07:35:57

puterboy
Member
Registered: 2008-09-18
Posts: 244

Re: Fuse packages for fonz fun_plug

Were you able to get fuse to work?
I tried compiling my own version for kernel 2.6.12.6 (including some of the fixes mentioned on the net) but when I tried it with ntfs-3g and with the hello example, it hung my kernel.

Can you say a little more about what you did to get it to compile and work properly?
What user space filesystems have you gotten to work with it so far?

Offline

 

#6 2008-10-30 08:31:25

puterboy
Member
Registered: 2008-09-18
Posts: 244

Re: Fuse packages for fonz fun_plug

The problem with "Mounting fuse control filesystem failed!" is due to the fact that the mountpoint /sys/fs/fuse/connections doesn't exist.
Creating the mountpoint allows /ffp/start/fuse.sh to run without errors.

However, I still get that running something like ntfs-3g or the 'hello' example hangs and is unkillable.

Offline

 

#7 2008-11-04 22:52:43

jordan_d
Member
From: France
Registered: 2008-05-31
Posts: 22

Re: Fuse packages for fonz fun_plug

Hi, I tried to compile mhddfs, and I got this message:

Code:

gcc -Wall -D_FILE_OFFSET_BITS=64 -I/ffp//include/fuse   -DFUSE_USE_VERSION=26 -MMD obj/debug.o obj/main.o obj/parse_options.o obj/tools.o obj/usage.o -o mhddfs -pthread -L/ffp//lib -lfuse -ldl  
obj/main.o: In function `mhdd_utimens':
main.c:(.text+0x1ea0): warning: the use of LEGACY `utimes' is discouraged, use `utime'
/ffp/bin/ld: ERROR: /ffp//lib/libfuse.so uses hardware FP, whereas mhddfs uses software FP
/ffp/bin/ld: failed to merge target specific data of file /ffp//lib/libfuse.so
collect2: ld returned 1 exit status
make: *** [mhddfs] Error 1

How can I fix this? I assume that I'll have to modify the code, but I don't really know what to look for. Do you have an idea? Thanks.

Offline

 

#8 2008-11-04 23:51:16

jordan_d
Member
From: France
Registered: 2008-05-31
Posts: 22

Re: Fuse packages for fonz fun_plug

FP refers to Floating Point. OK. But I can't find any reference to any option in the makefile that tries to use software FP.
Here is my Makefile:

Code:

#    mhddfs - Multi HDD [FUSE] File System
#    Copyright (C) 2008 Dmitry E. Oboukhov <dimka@avanto.org>

#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.

#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.

#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

SRC    =    $(wildcard src/*.c)

OBJ    =    $(SRC:src/%.c=obj/%.o)

DEPS    =    $(OBJ:obj/%.o=obj/%.d)

TARGET    =    mhddfs

CFLAGS    =    -Wall $(shell pkg-config fuse --cflags) -DFUSE_USE_VERSION=26 -MMD
LDFLAGS    =    $(shell pkg-config fuse --libs)

FORTAR    =    src COPYING LICENSE README Makefile \
        README.ru.UTF-8 ChangeLog mhddfs.1 \
        debian

VERSION    =    $(shell cat src/version.h  \
    |grep '^.define'|grep '[[:space:]]VERSION[[:space:]]' \
    |awk '{print $$3}'|sed 's/\"//g' )

all: $(TARGET)

tarball: mhddfs_$(VERSION).tar.gz
    @echo '>>>> mhddfs_$(VERSION).tar.gz created'

mhddfs_$(VERSION).tar.gz: $(FORTAR) $(wildcard src/*) 
    mkdir mhddfs-$(VERSION)
    cp -r $(FORTAR) mhddfs-$(VERSION)
    tar --exclude=.svn -czvf $@ mhddfs-$(VERSION)
    rm -fr mhddfs-$(VERSION)


$(TARGET): obj/obj-stamp $(OBJ)
    gcc $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS)

obj/obj-stamp:
    mkdir -p obj
    touch $@

obj/%.o: src/%.c
    gcc $(CFLAGS) -c $< -o $@

clean:
    rm -fr obj $(TARGET) pwrite_test

release_svn_thread:
    @echo current version $(VERSION)
    if ! svn ls http://svn.uvw.ru/mhddfs/tags| \
        grep -q release_$(VERSION); then \
        svn copy -m release-$(VERSION) \
            http://svn.uvw.ru/mhddfs/trunk \
            http://svn.uvw.ru/mhddfs/tags/release_$(VERSION); \
    fi

open_project:
    screen -t vim vim Makefile src/* README* ChangeLog mhddfs.1

pwrite_test: src/test/pwrite.c
    gcc -o $@ $<

.PHONY: all clean open_project tarball release_svn_thread

include $(wildcard obj/*.d)

I don't understand

Offline

 

#9 2008-11-05 00:38:32

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1588
Website

Re: Fuse packages for fonz fun_plug

Your libfuse is broken, mhddfs compiled correctly with soft-FP.

Offline

 

#10 2008-12-08 18:21:44

puterboy
Member
Registered: 2008-09-18
Posts: 244

Re: Fuse packages for fonz fun_plug

Does anybody have an example of a working fuse file system on the dns-323?
Because everything I have tried to do just hangs the mount (which requires a reboot to clear)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB