https://bugs.kde.org/show_bug.cgi?id=422082

            Bug ID: 422082
           Summary: Using mountiso plugin unmount action on a mounted loop
                    device does not remove the loop device
           Product: dolphin
           Version: 20.04.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-n...@kde.org
          Reporter: kwon-young.c...@hotmail.fr
                CC: kfm-de...@kde.org
  Target Milestone: ---

SUMMARY

This concerns the mountiso dolphin-plugins but I could not find the correct
components.
This bug concerns the unmount behavior of the mountiso plugin.

Before starting, here is a schema of the workflow used to mount an iso file as
a
directory using the mountiso plugin in dolphin:

 mountiso mount/unmount action      dolphin sidebar mount/unmount action
              |             automatic               |
myimage.iso -----> /dev/loop0 -----> /dev/loop0p1 ----->
/run/media/user/myimage

The problem here is that you can't delete the /dev/loop0 device if /dev/loop0p1
is already mounted on /run/media/user/myimage.

I already have a patch for the mountiso plugin to unmount the /dev/loop0p1
device before deleting /dev/loop0 and I'll make a merge request soon.

Additional questions:

* Should the mount action of the mountiso plugin automatically mount the
/dev/loop0p1 device to a directory?
* Should the unmount action of dolphin sidebar automatically delete the
/dev/loop0 device?

I have already tried to automatically mount /dev/loop0p1 device to a directory
when mounting using mountiso action, but I can't make it to work.
After mounting the iso file to /dev/loop0, I can get the corresponding
/dev/loop0p1 device but it seems that Solid does not consider to be a
StorageAccess device, which means that I can't mount it to a directory.

STEPS TO REPRODUCE
1. Mount iso file using mountiso mount action
2. Click on the newly appeared device on dolphin side bar (as a results, new
device is mounted on a directory)
3. Go back to iso file, unmount using mountiso unmount action

OBSERVED RESULT

The device on dolphin side bar does not disappear.
When the user unmount the device from dolphin side bar, the device disappear
automatically.

EXPECTED RESULT

The device disappear from dolphin sidebar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.6.12-1-MANJARO
(available in About System)
KDE Plasma Version: latest build from source
KDE Frameworks Version: latest build from source
Qt Version: 5.14.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to