multipass icon indicating copy to clipboard operation
multipass copied to clipboard

mount/unmount foreign folder bug

Open luis4a0 opened this issue 5 years ago • 1 comments

This happens when mounting a folder in the client using a trailing slash in the destination path, issuing multipass mount path/to/mount diplomatic-lungfish:mountpoint/.

When trying to unmount it, the path must have the final slash. This is, the command multipass umount diplomatic-lungfish:mountpoint/ will work, but multipass umount diplomatic-lungfish:mountpoint won't, the command will print "mountpoint" is not mounted" mountpoint" not found in database.

This also happens if mounting without using a final backslash and trying to unmount using one.

This bug is related to https://github.com/canonical/multipass/issues/1378 .

luis4a0 avatar Mar 05 '20 14:03 luis4a0

I think what we can do is apply QDir::cleanPath to the input, this should give us enough uniformity.

Saviq avatar Mar 12 '20 19:03 Saviq