scripts/removable_storage_watch UDisks1 backend must listen for DeviceChanged to detect insertion/removal of certain media cards

Bug #1050837 reported by Zygmunt Krynicki
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Won't Fix
Undecided
Unassigned
Linux
New
Undecided
Unassigned

Bug Description

Testing existing UDisks1 code shows that certain media cards don't send the "DeviceRemoved" signal when the card is removed nor "DeviceAdded" when the card is inserted. Instead they operate like CD-ROM drives when the media is ejected, the drive is still there, and "DeviceChanged" signal gets sent.

Zygmunt Krynicki (zyga)
summary: scripts/removable_storage_watch UDisks1 backend must listen for
- DeviceChanged to detect removal of certain media cards
+ DeviceChanged to detect insertion/removal of certain media cards
description: updated
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

After talking to pitti it seems that there is a kernel bug as well. After removing the card (physically) from the reader udev and udisks see a change entry with DISK_MEDIA_CHANGE=1 but the partitions are _not_ removed from the system.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The device that is causing the problem:

Bus 001 Device 003: ID 05e3:0716 Genesys Logic, Inc. USB 2.0 Multislot Card Reader/Writer

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Also reproduced on:

Bus 001 Device 004: ID 05e3:0715 Genesys Logic, Inc. USB 2.0 microSD Reader

The trick is to remove the reader from the card, keeping the reader still in the USB port

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I can also reproduce the bug, confirmed

Changed in checkbox:
status: New → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Curiously enough _not_ reproduced with the same reader (05e3:0716) when using a CF card. When removed (physically) from the reader, a remove event for the appropriate partition is sent by udev.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Also not reproduced with the same reader when using sony memory stick

Zygmunt Krynicki (zyga)
affects: checkbox → plainbox-provider-checkbox
Changed in plainbox-provider-checkbox:
status: Confirmed → Won't Fix
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.