[Bug 1762595] Re: Thunar incorrectly thinks USB storage device hasn't finished ejecting

Martin Dauskardt md001 at gmx.de
Sun Jul 1 13:15:26 UTC 2018


It's a shame that Ubuntu has still no fix released and even not assigned
the issue to a developer.

I compiled gvfs for Ubuntu 18.04 (64 bit version) with the patch. It
should be sufficient to change /usr/lib/gvfs/gvfs-udisks2-volume-monitor
against the attached new binary.

** Attachment added: "new compiled binary for manual replacement in /usr/lib/gvfs"
   https://bugs.launchpad.net/archlinux/+source/gvfs/+bug/1762595/+attachment/5158378/+files/gvfs-udisks2-volume-monitor

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1762595

Title:
  Thunar incorrectly thinks USB storage device hasn't finished ejecting

Status in gvfs package in Ubuntu:
  Confirmed
Status in gvfs source package in Bionic:
  Confirmed
Status in gvfs source package in Cosmic:
  Confirmed
Status in gvfs package in Arch Linux:
  Fix Released

Bug description:
  [Impact]

   * This bug affects Thunar, and likely other file managers relying on
  udisks2.

   * When ejecting a USB disk, the disk ejects normally. However, Thunar
  does not detect that it was successfully ejected.

   * The "Writing data to device" notification will be displayed for
  some time.

   * Eventually, Thunar pops up an error dialog saying 'Failed to eject
  "<filesystem label>". Timeout was reached.'

   * Thunar will sometimes also exit at this point.

   * It has been determined that the upstream patch included in this
  upload resolves this error.

  [Test Case]

   1. Mount a partition of a USB hard disk or flash drive.

   2. Using the eject button in the Thunar window sidebar, eject the
  mounted partition of the USB HDD.

   3. The disk will spin down and eject normally. The "Writing data to
  device" notification will be displayed until  an error dialog saying
  'Failed to eject "<filesystem label>". Timeout was reached.'

  [Regression Potential]

   * Regression potential is very minimal. The patch is from upstream
  gvfs, contains a single line change, and applies only to the drive
  stopping event.

  [Original Report]
   
  $ lsb_release -rd
  Description: Ubuntu 18.04 LTS
  Release: 18.04

  $ apt-cache policy thunar
  thunar:
    Installed: 1.6.15-0ubuntu1
    Candidate: 1.6.15-0ubuntu1
    Version table:
   *** 1.6.15-0ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
          100 /var/lib/dpkg/status

  Steps to reproduce:

  1) Mount a partition of a USB harddisk

  2) Using the eject button in the Thunar window sidebar, eject the
  mounted partition of the USB HDD.

  3) After the USB HDD is ejected and spins down, unplug it
  .

  At (2), the disk ejects normally. But Thunar thinks it hasn't been
  ejected and is still trying to eject. The "Writing data to device"
  notification continues to display. Eventually, Thunar pops up an error
  dialog saying 'Failed to eject "<filesystem label>". Timeout was
  reached.' Sometimes Thunar will exit after this.

  Same thing happens with some USB flash drives, so the bug can also be
  tested with a pendrive.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1762595/+subscriptions



More information about the Ubuntu-sponsors mailing list