Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d1ded6313501d43005c2ec8923ed3ae6dc009674ddf1e075358c7218cdd6c2ac
Ticket: 4ae42446ab6ae605bbe5aaf5cb5905b499ce9794
overlaid zipfs mounts co-mingle directory contents
User & Date: apnadkarni on 2023-09-09 17:44:12
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Easiest described with an example. `test.zip` contains the directory `testdir` with the file `test2`. `teststored.zip` contains a file `abac-repeat.txt`.
    
    ```
    % zipfs mount //zipfs:/test ../tests/zipfiles/test.zip
    % glob -tails -dir //zipfs:/test/testdir *
    test2
    
    % zipfs mount //zipfs:/temp ../tests/zipfiles/teststored.zip
    % glob -tails -dir //zipfs:/temp *
    abac-repeat.txt
    ```
    
    Now instead if we mount `teststored.zip` on a path **inside** the `test.zip` archive, we get
    
    ```
    % zipfs mount //zipfs:/test/testdir ../tests/zipfiles/teststored.zip
    % glob -tails -dir //zipfs:/test/testdir *
    test2 abac-repeat.txt
    ```
    
    As seen above, //zipfs:/test/testdir now shows files from **both** archives. While one might be tempted to call this a "feature", I believe it is purely accidental. For one, afaik this is not how most operating system mounts behave. Second, when duplicate names are present, one of the two are hidden depending on order of mounting and **are not recovered** when the overlaid archive is unmounted, which is confusing.
    
    In my mind, the code should be changed to either
    
    1. Disallow mount points within mounted archives, or
    
    2. Disallow mount points if the mount point is an existing directory (may be empty directories could be allowed)
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "overlaid zipfs mounts co-mingle directory contents"
  16. type changed to: "Bug"