Bug 826519 - cups 1.5.3-2.fc17 interferes with udisksctl unmount
Summary: cups 1.5.3-2.fc17 interferes with udisksctl unmount
Keywords:
Status: CLOSED DUPLICATE of bug 747114
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-30 12:01 UTC by Edward Sheldrake
Modified: 2012-09-19 08:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-09-19 08:52:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Edward Sheldrake 2012-05-30 12:01:43 UTC
Description of problem:
After installing the recent cups testing update, "udisksctl unmount" fails to remove the directory created for a mounted USB disk.

Version-Release number of selected component (if applicable):
cups-1.5.3-2.fc17.x86_64

How reproducible:
Reproducible - after some further testing, I think cups prevents udisksd cleaning up the directory for USB disks that were mounted when cups was started.

Steps to Reproduce:
1. systemctl stop cups.service
2. Mount a USB disk with "udisksctl mount"
3. open a print dialog to auto start the cups service
4. Unmount the USB disk with "udisksctl unmount"
  
Actual results:
The disk is unmounted but the directory created remains.
May 30 12:36:23 obsidian udisksd[1155]: Cleaning up mount point /run/media/ejs/UDISK 2.0 (device 8:17 is not mounted)
May 30 12:36:23 obsidian udisksd[1155]: Error cleaning up mount point /run/media/ejs/UDISK 2.0: Error removing directory: Device or resource busy

Expected results:
The directory gets removed.

Additional info:
If you mount the USB disk again, it gets mounted in a new directory with a 1 appended to the name. And then udisks2 gets confused about what to unmount:

$ ls -l /run/media/ejs/
total 16
drwx------ 2 root root    40 May 30 12:35 UDISK 2.0
drwx------ 8 ejs  ejs  16384 Jan  1  1970 UDISK 2.01

$ udisksctl unmount -b /dev/sdb1
Error unmounting /dev/sdb1: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error unmounting /dev/sdb1: Command-line `umount  "/run/media/ejs/UDISK 2.0"' exited with non-zero exit status 32: umount: /run/media/ejs/UDISK 2.0: not mounted

If I do "systemctl stop cups.service", udisksd does clean up the old directory (eventually, I mounted and unmounted another disk to trigger the cleanup).

Possibly related to bug #747114 or bug #808109 but this started with cups-1.5.3-2.fc17.

Comment 1 Jiri Popelka 2012-05-30 13:07:23 UTC
Thanks.

This could indeed be related to bug #747114, bug #808109.
Also the 1.5.3 provides an improved USB backend based on libusb 1.0,
which could possibly somehow interfere with this.
Do you have any printer configured on your system ?

Comment 2 Edward Sheldrake 2012-05-30 16:40:56 UTC
I have a USB Deskjet-5900-series (hplip) configured but it's not usually plugged in nor switched on.

Comment 3 Jiri Popelka 2012-05-31 15:45:05 UTC
I'm able to reproduce it even with cups-1.5.2-12.fc17.x86_64 so I'd say it's a duplicate of the above mentioned bugs. Let's wait for Tim (he was investigating them more deeply) to decide.

Comment 4 Tim Waugh 2012-09-19 08:52:53 UTC
Marking as duplicate.

*** This bug has been marked as a duplicate of bug 747114 ***


Note You need to log in before you can comment on or make changes to this bug.