Sometimes the sdcard gets mounted twice after formating it

Bug #1421898 reported by Ricardo Salveti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Canonical Phone Foundations
ciborium (Ubuntu)
Fix Released
High
Unassigned
ciborium (Ubuntu RTM)
Fix Released
High
Unassigned

Bug Description

current build number: 234
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-02-14 00:43:00
version version: 234
version ubuntu: 20150211.1
version device: 20150211-74c2df2
version custom: 20150207-538-29-183

Using with ciborium 0.2.12+15.04.20150213~rtm-0ubuntu1.

To reproduce:
1 - Boot the phone with the sdcard already mounted;
2 - Format the sdcard using the external apps;
3 - Check the mounted paths used by the sdcard (/media - shell or mtp)

Expected result:
1 - Only one mount point for the sdcard available under /media

Broken result:
/dev/mmcblk1 on /media/phablet/C0F6-4BD9 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/mmcblk1 on /media/phablet/C0F6-4BD91 type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

Logs:
phablet@ubuntu-phablet:~$ cat ./.cache/upstart/ciborium.log
2015/02/14 01:08:04 dispatcher.go:112: New removal event for path.
2015/02/14 01:08:04 dispatcher.go:119: Removal event is /org/freedesktop/UDisks2/jobs/14 Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 dispatcher.go:155: Processing a remove event from path /org/freedesktop/UDisks2/jobs/14
2015/02/14 01:08:04 dispatcher.go:158: Sending a new remove job event.
2015/02/14 01:08:04 dispatcher.go:161: Sent event /org/freedesktop/UDisks2/jobs/14
2015/02/14 01:08:04 jobs.go:56: New event /org/freedesktop/UDisks2/jobs/14 Properties: map[] Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:58: Is removal event
2015/02/14 01:08:04 jobs.go:71: Deal with job event removal /org/freedesktop/UDisks2/jobs/14 [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:76: Job completed.
2015/02/14 01:08:04 jobs.go:86: Sending completed mkfs job
2015/02/14 01:08:04 jobs.go:90: Removed ongoing job for path/org/freedesktop/UDisks2/jobs/14
2015/02/14 01:08:04 udisks2.go:234: Format job done for /org/freedesktop/UDisks2/jobs/14
2015/02/14 01:08:04 dispatcher.go:105: New addition event for path /org/freedesktop/UDisks2/block_devices/mmcblk1 map[org.freedesktop.UDisks2.Filesystem:map[MountPoints:{[]}]]
2015/02/14 01:08:04 dispatcher.go:137: Processing an add event from path /org/freedesktop/UDisks2/block_devices/mmcblk1
2015/02/14 01:08:04 dispatcher.go:146: Sending a new general add event.
2015/02/14 01:08:04 dispatcher.go:149: Sent event /org/freedesktop/UDisks2/block_devices/mmcblk1
2015/02/14 01:08:04 udisks2.go:312: Mount path /org/freedesktop/UDisks2/block_devices/mmcblk1
2015/02/14 01:08:04 dispatcher.go:105: New addition event for path /org/freedesktop/UDisks2/jobs/15 map[org.freedesktop.UDisks2.Job:map[Rate:{0} ExpectedEndTime:{0} Objects:{[/org/freedesktop/UDisks2/block_devices/mmcblk1]} StartedByUID:{32011} Cancelable:{true} Operation:{filesystem-mount} Progress:{0} ProgressValid:{false} Bytes:{0} StartTime:{1423883284437284}]]
2015/02/14 01:08:04 dispatcher.go:137: Processing an add event from path /org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 dispatcher.go:140: Sending a new job event.
2015/02/14 01:08:04 dispatcher.go:143: Sent event /org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 jobs.go:56: New event /org/freedesktop/UDisks2/jobs/15 Properties: map[org.freedesktop.UDisks2.Job:map[Rate:{0} ExpectedEndTime:{0} Objects:{[/org/freedesktop/UDisks2/block_devices/mmcblk1]} StartedByUID:{32011} Cancelable:{true} Operation:{filesystem-mount} Progress:{0} ProgressValid:{false} Bytes:{0} StartTime:{1423883284437284}]] Interfaces: []
2015/02/14 01:08:04 jobs.go:106: Creating job for new path /org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 jobs.go:107: New job operation filesystem-mount
2015/02/14 01:08:04 jobs.go:136: Ignoring job event with operation filesystem-mount
2015/02/14 01:08:04 dispatcher.go:112: New removal event for path.
2015/02/14 01:08:04 dispatcher.go:119: Removal event is /org/freedesktop/UDisks2/jobs/15 Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 dispatcher.go:155: Processing a remove event from path /org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 dispatcher.go:158: Sending a new remove job event.
2015/02/14 01:08:04 dispatcher.go:161: Sent event /org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 jobs.go:56: New event /org/freedesktop/UDisks2/jobs/15 Properties: map[] Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:58: Is removal event
2015/02/14 01:08:04 jobs.go:71: Deal with job event removal /org/freedesktop/UDisks2/jobs/15 [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:76: Job completed.
2015/02/14 01:08:04 jobs.go:90: Removed ongoing job for path/org/freedesktop/UDisks2/jobs/15
2015/02/14 01:08:04 dispatcher.go:105: New addition event for path /org/freedesktop/UDisks2/jobs/16 map[org.freedesktop.UDisks2.Job:map[Rate:{0} ExpectedEndTime:{0} Objects:{[/org/freedesktop/UDisks2/block_devices/mmcblk1]} StartedByUID:{32011} Cancelable:{true} Operation:{filesystem-mount} Progress:{0} ProgressValid:{false} Bytes:{0} StartTime:{1423883284497097}]]
2015/02/14 01:08:04 dispatcher.go:137: Processing an add event from path /org/freedesktop/UDisks2/jobs/16
2015/02/14 01:08:04 dispatcher.go:140: Sending a new job event.
2015/02/14 01:08:04 dispatcher.go:143: Sent event /org/freedesktop/UDisks2/jobs/16
2015/02/14 01:08:04 jobs.go:56: New event /org/freedesktop/UDisks2/jobs/16 Properties: map[org.freedesktop.UDisks2.Job:map[Operation:{filesystem-mount} Progress:{0} ProgressValid:{false} Bytes:{0} StartTime:{1423883284497097} Rate:{0} ExpectedEndTime:{0} Objects:{[/org/freedesktop/UDisks2/block_devices/mmcblk1]} StartedByUID:{32011} Cancelable:{true}]] Interfaces: []
2015/02/14 01:08:04 jobs.go:106: Creating job for new path /org/freedesktop/UDisks2/jobs/16
2015/02/14 01:08:04 jobs.go:107: New job operation filesystem-mount
2015/02/14 01:08:04 jobs.go:136: Ignoring job event with operation filesystem-mount
2015/02/14 01:08:04 dispatcher.go:112: New removal event for path.
2015/02/14 01:08:04 dispatcher.go:119: Removal event is /org/freedesktop/UDisks2/jobs/16 Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 dispatcher.go:155: Processing a remove event from path /org/freedesktop/UDisks2/jobs/16
2015/02/14 01:08:04 dispatcher.go:158: Sending a new remove job event.
2015/02/14 01:08:04 dispatcher.go:161: Sent event /org/freedesktop/UDisks2/jobs/16
2015/02/14 01:08:04 jobs.go:56: New event /org/freedesktop/UDisks2/jobs/16 Properties: map[] Interfaces: [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:58: Is removal event
2015/02/14 01:08:04 jobs.go:71: Deal with job event removal /org/freedesktop/UDisks2/jobs/16 [org.freedesktop.UDisks2.Job]
2015/02/14 01:08:04 jobs.go:76: Job completed.
2015/02/14 01:08:04 jobs.go:90: Removed ongoing job for path/org/freedesktop/UDisks2/jobs/16

Related branches

Changed in ciborium (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in ciborium (Ubuntu RTM):
importance: Undecided → Medium
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Canonical Phone Foundations (canonical-phonedations-team)
Changed in ciborium (Ubuntu):
importance: Medium → High
Changed in ciborium (Ubuntu RTM):
importance: Medium → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ciborium - 0.2.12+15.04.20150316.7-0ubuntu1

---------------
ciborium (0.2.12+15.04.20150316.7-0ubuntu1) vivid; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk
  * Resync trunk
  * Resync trunk
  * Resync trunk added: po/cs.po

  [ Manuel de la Pena ]
  * Add dialogs for the format an unmount errors.
  * Ensure that more than one format operation can be performed in the
    ciborium ui.
  * Ensure that the default dirs are created after the sd card has been
    formatted. (LP: #1421898)
  * Ensure that we can format and safetly remove 10 times wihtout issues
    by querying the drives after each action and updating the internal
    cache. Improve UI to make sure that a format cannot be done when a
    device is no mounted. (LP: #1414731)
  * Improve the ui overall.
  * Increase the test coverage.
  * Track mount and unmount events. Allow to unmount and format a
    unlimited number of times without living the application.
 -- CI Train Bot <email address hidden> Mon, 16 Mar 2015 21:36:32 +0000

Changed in ciborium (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ciborium - 0.2.12+15.04.20150316.7~rtm-0ubuntu2

---------------
ciborium (0.2.12+15.04.20150316.7~rtm-0ubuntu2) 14.09; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk
  * Resync trunk
  * Resync trunk
  * Resync trunk added: po/cs.po

  [ Manuel de la Pena ]
  * Add dialogs for the format an unmount errors.
  * Ensure that more than one format operation can be performed in the
    ciborium ui.
  * Ensure that the default dirs are created after the sd card has been
    formatted. (LP: #1421898)
  * Ensure that we can format and safetly remove 10 times wihtout issues
    by querying the drives after each action and updating the internal
    cache. Improve UI to make sure that a format cannot be done when a
    device is no mounted. (LP: #1414731)
  * Improve the ui overall.
  * Increase the test coverage.
  * Track mount and unmount events. Allow to unmount and format a
    unlimited number of times without living the application.

ciborium (0.2.12+15.04.20150213-0ubuntu1) vivid; urgency=medium

  *

ciborium (0.2.12+15.04.20150212-0ubuntu1) vivid; urgency=medium

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Albert Astals Cid ]
  * Fix crash if context.file is null (LP: #1418544)

  [ Manuel de la Pena ]
  * Ensure that we remount the drives after we format them. Remove
    deadlocks.

ciborium (0.2.12+15.04.20141201-0ubuntu1) vivid; urgency=low

  [ Sergio Schvezov ]
  * Create standard home dirs (Documents, Downloads, Music, Pictures and
    Videos) after mounting, if they don't exist
 -- CI Train Bot <email address hidden> Mon, 16 Mar 2015 21:36:32 +0000

Changed in ciborium (Ubuntu RTM):
status: Confirmed → Fix Released
Changed in canonical-devices-system-image:
status: New → Fix Released
importance: Undecided → High
milestone: none → ww13-ota
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.