hasse69 / rar2fs

FUSE file system for reading RAR archives
https://hasse69.github.io/rar2fs/
GNU General Public License v3.0
275 stars 26 forks source link

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

Open hasse69 opened 9 years ago

hasse69 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 hasse69 on 2011-02-04

hasse69 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 issue reported on code.google.com by hasse69 on 2011-02-05 18:25:44