question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-mount like AVFS (or better) for transparent navigation

See original GitHub issue

Basically, I expected something AVFS-esque, but couldn’t wrap my head how to achieve this with ratarmount. What AVFS currently does:

  • mount whole “/” to ~/.avfs as FUSE
  • when accessing archives under ~/.avfs/ (with # appended to path) it auto-mounts them to these paths e.g. ~/.avfs/tmp/bash-5.0.tar.gz#/

Improvement for above workflow would be to auto-unmount these bindmounts too, when e.g. lsof shows no program is using files under mountpoint (however better method would be desirable).

Primary usecase: integration with filemanagers, to jump into VFS folder when trying to open/preview archive. E.g. https://github.com/ranger/ranger/issues/456#issuecomment-797925011

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mxmlnkncommented, Jun 27, 2021

I think I’ll close this for now with ed68786. Feel free to reopen or open another issue if the missing auto-“unmount” leads to some kind of performance problems. As discussed, the recursive mounting is done internally so it should be a bit more lightweight than a full system mount. One problem I can think of might be that the upper limit of open file handles might get hit when recursively mounting a thousand or so archives. That limit can be increased with ulimit though.

1reaction
mxmlnkncommented, Mar 20, 2021

Let’s align our understanding

I see nothing wrong with what you said, including the performance downside.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found