write-back fails on unmount in 16.04: apparently fixed in version 0.4.2 upstream

Bug #1671527 reported by Jonas Bardino
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fuse-zip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Mounting and adding contents inside mounted zip seems to work, but unmounting results in a syslog error and changes are then not really written to the archive as one would have expected them to be.
The error message on unmount is:
... fuse-zip[4923]: Error while closing archive: Operation not supported
... fuse-zip[4923]: File system unmounted

On Ubuntu 16.04.2 running the attached test script yields:
0|~/build/fuse-zip-test > bash fuse-zip-write-test.sh
Running fuse-zip write test
  adding: test-file.txt (stored 0%)
Original archive contains:
Archive: test-archive.zip
  Length Date Time Name
--------- ---------- ----- ----
        5 2017-03-09 15:03 test-file.txt
--------- -------
        5 1 file
Mount and copy file to archive
Now mount contains:
total 1
-rw-rw-r-- 1 bardino bardino 5 Mar 9 15:03 another-test-file.txt
-rw-rw-r-- 1 bardino bardino 5 Mar 9 15:03 test-file.txt
After unmounting archive contains:
Archive: test-archive.zip
  Length Date Time Name
--------- ---------- ----- ----
        5 2017-03-09 15:03 test-file.txt
--------- -------
        5 1 file
Cleaning up

Where the zip is clearly missing the added another-test-file.txt after the unmount.

Running the same script on e.g. a Debian Jessie host correctly results in the files appearing in the zip after unmount. That system similarly uses fuse-zip 0.4.0 but with an older libzip (libzip2 0.11.2-1.2) vs the newer one in xenial (libzip4 1.0.1-0ubuntu1).

Apparently that difference causes the problem and it has been fixed in 0.4.2 upstream. Please refer to the details in the upstream bug #49 for details:
https://bitbucket.org/agalanin/fuse-zip/issues/49/is-it-broken-on-ubuntu-1604

I have verified that running apt-get build-dep fuse-zip and then manually building fuse-zip 0.4.2 from upstream solves the problem on Ubuntu 16.04.2, too.

Additional test system info:
0|~ > lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
0|~ > apt-cache policy fuse-zip
fuse-zip:
  Installed: 0.4.0-2build1
  Candidate: 0.4.0-2build1
  Version table:
 *** 0.4.0-2build1 500
        500 http://dk.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Jonas Bardino (jonas-bardino) wrote :
description: updated
Changed in fuse-zip (Ubuntu):
status: New → Fix Committed
Changed in fuse-zip (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.