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

Expose directory structure when mounting directory contains lot of archive sets. #26

Open
hasse69 opened this issue Mar 13, 2015 · 3 comments

Comments

@hasse69
Copy link
Owner

hasse69 commented Mar 13, 2015

I have some RAR archives that contains same path name in. When I mount this directory,
it exposes contents in one of their archives, not all archives... If it shows using one more
directory sturcture based on archive name, there's not any conflicts on it.

Here is an example. I know my english is poor, and I'm afraid that you may not understand
what I say above...

* Working Directory : /dev/shm/RARS

in /dev/shm/RARS/1.rar : DATA/1.txt, DATA/2.txt, DATA/4.txt
in /dev/shm/RARS/2.rar : DATA/1.txt, DATA/2.txt, DATA/3.txt

* Mount directory.
# rar2fs-read-only/rar2fs -o ro,allow_other /dev/shm/RARS 1/

* Current behavior:

# ls -l 1/DATA
total 12
-rw-r--r-- 1 root root 5 Feb  1 14:25 1.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 2.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 4.txt

 - There's no contents in 2.rar.

* What it should be I think:

# ls -l 1
drwxr-xr-x 2 root root 4096 Feb  1 14:25 1
drwxr-xr-x 2 root root 4096 Feb  1 14:25 2

 - Directory name is based on archive name.

# ls -l 1/1
drwxr-xr-x 2 root root 4096 Feb  1 14:25 DATA
# ls -l 1/1/DATA
-rw-r--r-- 1 root root 5 Feb  1 14:25 1.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 2.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 4.txt
# ls -l 1/2/DATA
-rw-r--r-- 1 root root 5 Feb  1 14:25 1.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 2.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 4.txt

Original issue reported on code.google.com by jyhpsycho on 2014-02-01

@hasse69
Copy link
Owner Author

hasse69 commented Apr 29, 2015

some typo... :-(

# ls -l 1/2/DATA
-rw-r--r-- 1 root root 5 Feb  1 14:25 1.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 2.txt
-rw-r--r-- 1 root root 5 Feb  1 14:25 3.txt

Original issue reported on code.google.com by jyhpsycho on 2014-02-01 05:41:20

@hasse69
Copy link
Owner Author

hasse69 commented Apr 29, 2015

Your suggestion is noted. Actually this was something that I also had in mind a long
time back, but I dropped it! The reason was because I do not wish that rar2fs dictates
the file structure other than what the archive contains. Enforcing folder names might
not be what a user wants. rar2fs tries to mimic the file structure has it would have
looked like if all the archives were unpacked in place. Thus, it would not have been
possible to extract two archives with the same contents in the same folder. That is
why you only see one of the archives. It is up to the user to create a proper file
structure that works. But I might consider adding the functionality you ask for, but
then it will be optional and controlled by a switch of some kind.

I am re-labelling this to "Enhancement" since this is not a defect.

Original issue reported on code.google.com by hasse69 on 2014-02-01 16:57:01

  • Labels added: Type-Enhancement
  • Labels removed: Type-Defect

@hasse69
Copy link
Owner Author

hasse69 commented Apr 29, 2015

I agree. it should be optional feature... Thanks for kind reply :-) I hope that rar2fs
supports features as much as possible.

Original issue reported on code.google.com by jyhpsycho on 2014-02-02 06:18:54

@hasse69 hasse69 changed the title Suggestion : Expose directory structure when mounting directory contains lot of archive sets. Expose directory structure when mounting directory contains lot of archive sets. Nov 11, 2017
@hasse69 hasse69 added this to To do in Backlog Oct 10, 2019
@hasse69 hasse69 moved this from To do to On hold in Backlog Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
  
On hold
Development

No branches or pull requests

1 participant