ClosestStorm / rar2fs

Automatically exported from code.google.com/p/rar2fs
GNU General Public License v3.0
0 stars 0 forks source link

rar2fs does not work properly when used remotely for compressed archives mounted over NFSv2/v3 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. mount a rar2fs folder on _server_ side
2. export the folder using NFSv2/v3
3. mount the exported folder on _client_ side

Compressed archives will not playback properly. A similar setup 
exported/mounted using CIFS works as expected. Non-compressed archives (store) 
also works fine when NFSv2/v3 is used. Using rar2fs purely on the client side 
also works reliable.
The problem is related to how NFS is interacting with the file system. When 
used remotely rar2fs needs to handle the stateless access patterns from NFS. 
When rar2fs is used locally this interaction is avoided.

Original issue reported on code.google.com by hans.bec...@gmail.com on 4 Feb 2011 at 6:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The reason why it works when rar2fs is used locally on the client side is that 
all NFSv2/v3 interaction with the exported/mounted file system has already been 
completed when FUSE/rar2fs is notified about the file system events. When used 
remotely rar2fs has to face the overhead created by NFS's repeated 
open-read-close cycles (each of which results in a new decompression thread).

Original comment by hans.bec...@gmail.com on 5 Feb 2011 at 6:25

GoogleCodeExporter commented 9 years ago
I have a similar issue with netatalk (afp).
May 29 22:04:12 collected kernel: pid 94027 (afpd), uid 1001: exited on signal 
8... Not much to go on...
Samba seems to work fine. But samba... :P

Here some output of rar2fs with debugging trying to mount over afp:

[root@collected /var/log]# rar2fs -f -d -o allow_other -o default_permissions 
/mnt/Media/ /mnt/RMedia/
unique: 0, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.8
flags=0x00000000
max_readahead=0x00000000
   INIT: 7.8
   flags=0x00000000
   max_readahead=0x00000000
   max_write=0x00020000
   unique: 0, error: 0 (Unknown error: 0), outsize: 40
unique: 0, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 112
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 53
LOOKUP /.AppleDouble
   NODEID: 2
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /.AppleDouble/.Parent
   NODEID: 3
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: OPEN (14), nodeid: 3, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /.AppleDouble/.Parent
unique: 0, opcode: READ (15), nodeid: 3, insize: 64
READ[9] 741 bytes from 0
   READ[9] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 757
unique: 0, opcode: RELEASE (18), nodeid: 3, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 61
LOOKUP /Network Trash Folder
   NODEID: 4
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 61
LOOKUP /Network Trash Folder
   NODEID: 4
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 4, insize: 53
LOOKUP /Network Trash Folder/.AppleDouble
   NODEID: 5
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 5, insize: 48
LOOKUP /Network Trash Folder/.AppleDouble/.Parent
   NODEID: 6
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: OPEN (14), nodeid: 6, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Network Trash Folder/.AppleDouble/.Parent
unique: 0, opcode: READ (15), nodeid: 6, insize: 64
READ[9] 741 bytes from 0
   READ[9] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 757
unique: 0, opcode: OPEN (14), nodeid: 6, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[11] flags: 0x1 /Network Trash Folder/.AppleDouble/.Parent
unique: 0, opcode: WRITE (16), nodeid: 6, insize: 805
WRITE[11] 741 bytes to 0
   WRITE[11] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 24
unique: 0, opcode: RELEASE (18), nodeid: 6, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: RELEASE (18), nodeid: 6, insize: 64
RELEASE[11] flags: 0x1
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 56
LOOKUP /Temporary Items
   NODEID: 7
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 56
LOOKUP /Temporary Items
   NODEID: 7
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 7, insize: 53
LOOKUP /Temporary Items/.AppleDouble
   NODEID: 8
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 8, insize: 48
LOOKUP /Temporary Items/.AppleDouble/.Parent
   NODEID: 9
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: OPEN (14), nodeid: 9, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x102 /Temporary Items/.AppleDouble/.Parent
unique: 0, opcode: READ (15), nodeid: 9, insize: 64
READ[9] 741 bytes from 0
   READ[9] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 757
unique: 0, opcode: OPEN (14), nodeid: 9, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
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
unique: 0, opcode: RELEASE (18), nodeid: 9, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: RELEASE (18), nodeid: 9, insize: 64
RELEASE[11] flags: 0x1
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 54
LOOKUP /.AppleDesktop
   NODEID: 10
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 54
LOOKUP /.AppleDesktop
   NODEID: 10
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 10, insize: 49
LOOKUP /.AppleDesktop/.volinfo
   NODEID: 11
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: OPEN (14), nodeid: 11, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[9] flags: 0x2 /.AppleDesktop/.volinfo
unique: 0, opcode: LOOKUP (1), nodeid: 1, insize: 53
LOOKUP /.AppleDouble
   NODEID: 2
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /.AppleDouble/.Parent
   NODEID: 3
   unique: 0, error: 0 (Unknown error: 0), outsize: 136
unique: 0, opcode: OPEN (14), nodeid: 3, insize: 48
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[11] flags: 0x102 /.AppleDouble/.Parent
unique: 0, opcode: READ (15), nodeid: 3, insize: 64
READ[11] 741 bytes from 0
   READ[11] 741 bytes
   unique: 0, error: 0 (Unknown error: 0), outsize: 757
unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 0, error: 0 (Unknown error: 0), outsize: 96
unique: 0, opcode: RELEASE (18), nodeid: 11, insize: 64
RELEASE+FLUSH[9] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: RELEASE (18), nodeid: 3, insize: 64
RELEASE+FLUSH[11] flags: 0x2
   unique: 0, error: 0 (Unknown error: 0), outsize: 16

Cheers,
Joris

Original comment by wiebel@gmail.com on 29 May 2011 at 8:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
New issue created for the AFP mount problems
http://code.google.com/p/rar2fs/issues/detail?id=5

Original comment by hans.bec...@gmail.com on 29 May 2011 at 10:21