Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netatalk failing with rar2fs mounted filesystems #5

Closed
hasse69 opened this issue Mar 13, 2015 · 141 comments
Closed

Netatalk failing with rar2fs mounted filesystems #5

hasse69 opened this issue Mar 13, 2015 · 141 comments

Comments

@hasse69
Copy link
Owner

hasse69 commented Mar 13, 2015

It seems afpd crashes when trying to access a rar2fs mount. This could be because apfd normaly tries
to created some osx related directories and files. Since the rar2fs is readonly this fails. 
The thing is my os doesn't show it as read only.

I attached the rar2fs logfile running it with DEBUG=4 compile option.

Cheers,
Joris

Original issue reported on code.google.com by wiebel on 2011-05-29

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Indeed, afpd tries to write to your file system, but return from write is 0.

OPEN[11] flags: 0x1 /Temporary Items/.AppleDouble/.Parent
unique: 0, opcode: WRITE (16), nodeid: 9, insize: 805
WRITE[11] 741 bytes to 0
   WRITE[11] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 24

That indicates that something caused the write to fail. But from the rar2fs log nothing
actually indicates a problem. rar2fs supports writing to the underlying file system,
but not to RAR files. In this case it should be able to write to the file unless there
is some permission issue refusing it to do so.

Original issue reported on code.google.com by hasse69 on 2011-05-29 22:16:10

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Could you please also attach the rar2fs.log, without the -d option (cause too much noise).
The attached log only dislays the FUSE low level API calls.

Original issue reported on code.google.com by hasse69 on 2011-05-29 22:27:26

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Hmmz that's odd indeed. I tried with my local user (1001) and I indeed have no trouble
created and deleting files, including the Temporary Items/.AppleDouble/.Parent file...

Original issue reported on code.google.com by wiebel on 2011-05-29 22:30:39

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

If you compare outfrom from FUSE (-d), is there any difference.
I am not too sure that return of error 0 is in fact a failure, I think that is the
old way for FUSE to say everything was ok. In newer versions of FUSE a successful write
looks like:

unique: 103, opcode: WRITE (16), nodeid: 5, insize: 89
write[9] 9 bytes to 0 flags: 0x8001
   write[9] 9 bytes to 0
   unique: 103, success, outsize: 24
unique: 104, opcode: FLUSH (25), nodeid: 5, insize: 64




Original issue reported on code.google.com by hasse69 on 2011-05-29 22:47:07

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I'm sorry, wrong log file :)
Attached 2 correct ones. The first one is the one I made before.
The 2nd one I just made by running rar2fs again and has way less lines. Don't no what
changed.

To clarify, I only opened Finder and clicked the share I announce with netatalk.

Netatalk's afpd seems to crash with a signal 8.

Original issue reported on code.google.com by wiebel on 2011-05-29 22:47:44


- _Attachment: [rar2fs-1.txt](https://storage.googleapis.com/google-code-attachments/rar2fs/issue-5/comment-5/rar2fs-1.txt)_ - _Attachment: [rar2fs-2.txt](https://storage.googleapis.com/google-code-attachments/rar2fs/issue-5/comment-5/rar2fs-2.txt)_

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

The difference is that there are no write() calls in the second run!
There are no indications of errors in either of the two log files from rar2fs.
I guess this one needs some more thinking.

Original issue reported on code.google.com by hasse69 on 2011-05-29 22:55:39

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Can you please provide more information about:
- FUSE version used, version of libfuse.so (eg. libfuse.so.2.7.4)
- client and server side OS version
- is it the client or server side that crash with signal 8 ?
- have you successfully tried any other FUSE file systems over Netatalk before ?

Original issue reported on code.google.com by hasse69 on 2011-05-30 07:01:26

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Of course I can :)

Fuse version: fusefs-libs-2.7.4
server os: FreeBSD
client OSX 10.6.7
Crash is server side, afpd (netatalk)
Just tested with sshfs (fuse) and that seems to work fine, more or less. No afpd crashes.

Original issue reported on code.google.com by wiebel on 2011-05-30 07:38:35

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I have commited a question to the FUSE development mail forum.

As it stands right now I have no clue to why rar2fs should not work across Netatalk/AFP.
Hence, rarfs knows nothing about the data transport being used, all it sees is the
local file system accesses. Maybe there is some access op that rar2fs is missing that
is required for Netatalk, eventhough I could not see that from the FUSE log. In fact,
just performing a simple directory access does not even touch the real functionality
of rar2fs!? 

When you mounted your sshfs file system, did you use any other combination of mount
options ? 


Original issue reported on code.google.com by hasse69 on 2011-05-30 13:34:50

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

For sshfs I used the same options as for rar2fs ( -o allow_other -o default_permissions
)

Original issue reported on code.google.com by wiebel on 2011-05-30 14:18:17

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Could you please rebuild and test with this new version of rar2fs.c ?

Original issue reported on code.google.com by hasse69 on 2011-05-30 15:10:33

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Oops, sorry, wrong version...
Here we go again.

Original issue reported on code.google.com by hasse69 on 2011-05-30 15:22:45


- _Attachment: [rar2fs.c](https://storage.googleapis.com/google-code-attachments/rar2fs/issue-5/comment-13/rar2fs.c)_

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Yeah baby! Works like charm!

Original issue reported on code.google.com by wiebel on 2011-05-30 15:48:58

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Hmmz, there is something wrong though, can't read the files in rar archives.

Original issue reported on code.google.com by wiebel on 2011-05-30 15:50:41

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Do you get empty folders ?
Or what do you mean by "can't read" ?

Original issue reported on code.google.com by hasse69 on 2011-05-30 15:54:16

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I can't copy nor view any files over afpd. Including the non-rar archives.  Although
I can browse the directories and archives normaly. This is some debug output:

rar2_getattr()   /
MISS    /   (collision: no)
STAT retrieved for /mnt/Media/
rar2_getattr()   /
MISS    /   (collision: no)
STAT retrieved for /mnt/Media/
rar2_getattr()   /.AppleDouble
MISS    /.AppleDouble   (collision: no)
STAT retrieved for /mnt/Media/.AppleDouble
rar2_getattr()   /.AppleDouble/.Parent
MISS    /.AppleDouble/.Parent   (collision: no)
sync_dir()   /.AppleDouble
rar2_getattr()   /Movies
MISS    /Movies   (collision: no)
STAT retrieved for /mnt/Media/Movies
rar2_getattr()   /
MISS    /   (collision: no)
STAT retrieved for /mnt/Media/
rar2_opendir()   /
rar2_readdir()   /
rar2_getattr()   /
MISS    /   (collision: no)
STAT retrieved for /mnt/Media/
rar2_getattr()   /Movies
MISS    /Movies   (collision: no)
STAT retrieved for /mnt/Media/Movies
rar2_getattr()   /Movies
MISS    /Movies   (collision: no)
STAT retrieved for /mnt/Media/Movies
rar2_getattr()   /Movies/.AppleDouble
MISS    /Movies/.AppleDouble   (collision: no)
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies/.AppleDouble
MISS    /Movies/.AppleDouble   (collision: no)
rar2_getattr()   /.AppleDouble
MISS    /.AppleDouble   (collision: no)
STAT retrieved for /mnt/Media/.AppleDouble
rar2_getattr()   /.AppleDouble/.Parent
MISS    /.AppleDouble/.Parent   (collision: no)
sync_dir()   /.AppleDouble
rar2_getattr()   /.AppleDouble
MISS    /.AppleDouble   (collision: no)
STAT retrieved for /mnt/Media/.AppleDouble
rar2_getattr()   /.AppleDouble
MISS    /.AppleDouble   (collision: no)
STAT retrieved for /mnt/Media/.AppleDouble
rar2_getattr()   /.AppleDouble/.Parent
MISS    /.AppleDouble/.Parent   (collision: no)
sync_dir()   /.AppleDouble
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies/.AppleDouble
MISS    /Movies/.AppleDouble   (collision: no)
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies/.AppleDouble
MISS    /Movies/.AppleDouble   (collision: no)
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies
MISS    /Movies   (collision: no)
STAT retrieved for /mnt/Media/Movies
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_open()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) OPEN    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0x0][called from 02345]
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
lopen()   /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies/.AppleDouble
MISS    /Movies/.AppleDouble   (collision: no)
rar2_flush()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) FLUSH   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0xd             ][called
from 02345]
lflush()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_release()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) RELEASE /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0xd             ]
lrelease()   /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_open()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) OPEN    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0x0][called from 02345]
MISS    /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv   (collision: no)
STAT retrieved for /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
lopen()   /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_flush()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) FLUSH   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0xd             ][called
from 02345]
lflush()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_release()   /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
(02340) RELEASE /Movies/Black.Death.1080p.BluRay.x264-Grond.mkv [0xd             ]
lrelease()   /mnt/Media/Movies/Black.Death.1080p.BluRay.x264-Grond.mkv
rar2_getattr()   /
MISS    /   (collision: no)
STAT retrieved for /mnt/Media/

Original issue reported on code.google.com by wiebel on 2011-05-30 16:01:22

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

A simple cat gives me this:

Client:

vandalon$ cat cbgb-howtotrainyourdragon720.nfo 
cat: cbgb-howtotrainyourdragon720.nfo: Invalid argument

Server:

rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble   (collision:
no)
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB   (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_open()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) OPEN    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0x0][called from 02486]
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
lopen()   /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble   (collision:
no)
rar2_flush()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) FLUSH   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0xd             ][called from 02486]
lflush()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_release()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) RELEASE /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0xd             ]
lrelease()   /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_getattr()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_open()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) OPEN    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0x0][called from 02486]
MISS    /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
  (collision: no)
STAT retrieved for /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
lopen()   /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_flush()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) FLUSH   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0xd             ][called from 02486]
lflush()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
rar2_release()   /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
(02479) RELEASE /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
[0xd             ]
lrelease()   /mnt/Media/Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo


Original issue reported on code.google.com by wiebel on 2011-05-30 16:06:59

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Ok, the .nfo file in your example is *not* located inside an archive, right ? 
This is weird, really. Your 'cat' does not even try to do RAR access, it performs standard
open() calls, but there is no read() calls!!!
Could you perform this 'cat' again but this time only provide the FUSE log ? Rebuild
rar2fs using no DEBUG.



Original issue reported on code.google.com by hasse69 on 2011-05-30 16:30:54

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

that .nfo file was not in an archive indeed.
I compiled without the DEBUG options but then I get no output at all.

Original issue reported on code.google.com by wiebel on 2011-05-30 17:18:48

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

You must specify -d option when you start rar2fs

Original issue reported on code.google.com by hasse69 on 2011-05-30 17:51:36

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Ow sorry :)

unique: 0, opcode: LOOKUP (1), nodeid: 27, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: LOOKUP (1), nodeid: 27, insize: 53
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
   unique: 1, error: -2 (No such file or directory), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 27, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: GETATTR (3), nodeid: 27, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 112
unique: 0, opcode: LOOKUP (1), nodeid: 27, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: OPEN (14), nodeid: 40, insize: 48
   unique: 1, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
unique: 0, opcode: LOOKUP (1), nodeid: 27, insize: 53
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
   unique: 0, error: -2 (No such file or directory), outsize: 16
unique: 1, opcode: RELEASE (18), nodeid: 40, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 1, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 27, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: OPEN (14), nodeid: 40, insize: 48
   unique: 1, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
unique: 0, opcode: RELEASE (18), nodeid: 40, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16

Original issue reported on code.google.com by wiebel on 2011-05-30 17:56:50

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

No read calls :( 
Can you try the mount option -o kernel_cache

Original issue reported on code.google.com by hasse69 on 2011-05-30 18:14:47

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Makes no difference i'm afraid:

unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 128
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: LOOKUP (1), nodeid: 7, insize: 53
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
   unique: 1, error: -2 (No such file or directory), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 128
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: GETATTR (3), nodeid: 7, insize: 40
   unique: 1, error: 0 (Unknown error: 0), outsize: 112
unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 128
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: OPEN (14), nodeid: 128, insize: 48
   unique: 1, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 53
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/.AppleDouble
   unique: 0, error: -2 (No such file or directory), outsize: 16
unique: 1, opcode: RELEASE (18), nodeid: 128, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 1, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 73
LOOKUP /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
   NODEID: 128
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 1, opcode: OPEN (14), nodeid: 128, insize: 48
   unique: 1, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Movies/How.To.Train.Your.Dragon.720p.Bluray.x264-CBGB/cbgb-howtotrainyourdragon720.nfo
unique: 0, opcode: RELEASE (18), nodeid: 128, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16

Original issue reported on code.google.com by wiebel on 2011-05-30 18:21:45

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

That I suspected, it was a long shot. A really long one ;)
I need you to try two things, on both the server and the client side.
Enter the folder from which you made 'cat'.
You need to enter the mount point, not the source folder.

a) enter 'ls -l'
b) enter 'stat your-nfo-file'

Do this on both client and server side and post the output.


Original issue reported on code.google.com by hasse69 on 2011-05-30 18:47:19

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Also if you enter your mount point on the server side, can you try 'cat' and post the
FUSE log. I need to check what flags FUSE receives for the open call. It looks strange
from AFP because it use O_RDWR|O_CREAT.

Original issue reported on code.google.com by hasse69 on 2011-05-30 18:53:49

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Can you try this file ?

Original issue reported on code.google.com by hasse69 on 2011-05-30 19:19:21


- _Attachment: [rar2fs.c](https://storage.googleapis.com/google-code-attachments/rar2fs/issue-5/comment-27/rar2fs.c)_

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

this is what I see in dmesg:

fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8

Original issue reported on code.google.com by wiebel on 2011-06-01 19:50:50

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Ok, this is what I get on Ubuntu 8.10 after insmod

[    2.409274] fuse init (API version 7.9)

Could be interesting to test a Linux server instead of FreeBSD.
Do you have a VMware player instance or something else that could be used as server
just to test if it makes a difference ?
At least it seems that there is a later version of the ABI available.





Original issue reported on code.google.com by hasse69 on 2011-06-01 20:36:15

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I have an ubuntu vm somewhere I can test with :)

Original issue reported on code.google.com by wiebel on 2011-06-01 20:38:24

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Hmmz I can't get libunrar compiled ...

Original issue reported on code.google.com by wiebel on 2011-06-01 21:25:33

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

details... ?

Original issue reported on code.google.com by hasse69 on 2011-06-01 21:26:47

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

g++ -shared -o libunrar.so  rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o
file.o filefn.o filcreat.o archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o
rawread.o encname.o resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o
errhnd.o rarvm.o rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o
unpack.o cmddata.o filestr.o scantree.o dll.o
/usr/bin/ld: strlist.o: relocation R_X86_64_32S against `.rodata' can not be used when
making a shared object; recompile with -fPIC
strlist.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib] Error 1

Original issue reported on code.google.com by wiebel on 2011-06-01 21:28:28

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Oh, a x32_64 platform ;)
Add -fPIC to the CXX_FLAGS in makefile.unix


Original issue reported on code.google.com by hasse69 on 2011-06-01 21:29:55

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

tada.wav :)

Original issue reported on code.google.com by wiebel on 2011-06-01 21:34:12

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

On linux it's working fine... can read files over an afp exported rar2fs volume...

Original issue reported on code.google.com by wiebel on 2011-06-01 21:39:51

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Does that tell us something :)
I think you should try to build a later FUSE kernel module for FreeBSD.
Was there a kernel module included in the 2.8.x release of FUSE ?


Original issue reported on code.google.com by hasse69 on 2011-06-01 21:42:38

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

the thing is that fuse is not for freebsd, there is a freebsd port (fuse4bsd) and that's
what I have installed, latest version. It seems that that project is discontinued...
In other words, I'm screwed :)

Original issue reported on code.google.com by wiebel on 2011-06-01 21:44:00

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

But..., FreeBSD...
Guess that is a port of the Linux driver since FUSE in its original form is a Linux
thingy...
Could be a huge undertaking to try to build someting later for this OS.
Or maybe it is not...

Original issue reported on code.google.com by hasse69 on 2011-06-01 21:48:10

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Who is the previous maintainer of fuse4bsd ?
Maybe you could drop him/her a mail ?

Original issue reported on code.google.com by hasse69 on 2011-06-01 21:49:27

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I can try :)
But "http://mercurial.creo.hu/repos/fuse4bsd-hg/" is not promising much... :)

Original issue reported on code.google.com by wiebel on 2011-06-01 21:51:06

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

What version of the FUSE ABI did your Linux server report ?

Original issue reported on code.google.com by hasse69 on 2011-06-01 21:52:02

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

no clue: 

root@halcyon:~# dmesg |grep -i fuse
[    1.701031] fuse init (API version 7.13) 

:)

Original issue reported on code.google.com by wiebel on 2011-06-01 22:00:43

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Ah, but the API/ABI is much later even than my Ubuntu 8.10.
From what I can tell from the link you posted, fuse4bsd is a completely different beast
compared to of-the-shelf fuse, similar to MacFUSE. It means it is really a "port" in
the true sense of the word. It is introducing its own bugs etc. Then I would say the
root cause of all your trouble is fuse4bsd. That also means getting help from the fuse
main stream development is more or less out of the question :(
So, wishing I did not need to say this, but either you need to leave FreeBSD in favour
for Linux ( I like that idea ;) ) or you can stick to your current workaround which
seems to do ok.



Original issue reported on code.google.com by hasse69 on 2011-06-01 22:09:31

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

I can't leave freebsd for linux in this case :)
I'm running zfs on this 'nas'-box ;) (and please don't tell me to use fuse-zfs :P)
I'll have to stick to nfs then :)

Original issue reported on code.google.com by wiebel on 2011-06-01 22:11:46

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

But...there are still questions unanswered...
Does this work also for RAR archives ? Meaning you can not create .AppleDouble folders
etc for those files. That means you need to turn that feature off in Netatalk. But
does it "really" work ?

Original issue reported on code.google.com by hasse69 on 2011-06-01 22:12:06

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

May we can lookinto that kernel-nfs issue I have. If you still want to work another
issue with me :P

Original issue reported on code.google.com by wiebel on 2011-06-01 22:12:16

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

*Maybe

Original issue reported on code.google.com by wiebel on 2011-06-01 22:12:39

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Just tested with rar file on linux, over afp, works like a charm :)

Original issue reported on code.google.com by wiebel on 2011-06-01 22:14:35

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Then register a new defect and we can look into the NFS thingy.

Is it ok for you if I close this issue ?
I will add a note somewhere that a AFP server does not work with fuse4bsd.



Original issue reported on code.google.com by hasse69 on 2011-06-01 22:20:12

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Of course, you did a great job trying to fix this, but it's out of our hands :)

Original issue reported on code.google.com by wiebel on 2011-06-01 22:23:25

@hasse69
Copy link
Owner Author

hasse69 commented Apr 30, 2015

Issue closed.

Original issue reported on code.google.com by hasse69 on 2011-06-01 22:32:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant