When used 3rd-party tools to mount two andriod mobile, the mount-event of the second mobile was blocked by which of the first mobile
Hi,
I mounted two mobile via 3rd-party tool, but the gio only trigged ONE volume mounted-event, until I umount the first mobile.
In fact, the two mobile were mounted , and I can access them at the same time.
Seems the mounted-event of the second mobile was blocked by which of the first mobile.
Hope it will be verified and resolved.
Thanks.
ENV:
$ apt policy gvfs-fuse
gvfs-fuse:1.38.1-5
libglib2.0: 2.58.3
Linux version 4.19.0-6-amd64 (debian-kernel@lists.debian.org)
Hardware:
Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
8GB(TMKU8G68AHFHC-26V DDR4 2667MHz (0.4ns))
mobile:
SEA-AL10
VOG-AL00
In face any two andriod mobile can reproduce the problem
step1: mount the first mobile use 3rd-party tool.
$ mount | grep mtp
aft-mtp-mount on /home/ocean/my-device type fuse.aft-mtp-mount (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gio mount-event monitor message(via GVolumeMonitor):
Mount added: 'my-device'
Mount added: 'my-device' //seems a dup message
step2: mount the second mobile use 3rd-party tool.
$ mount | grep mtp
aft-mtp-mount on /home/ocean/my-device type fuse.aft-mtp-mount (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
aft-mtp-mount on /home/ocean/my-device-2 type fuse.aft-mtp-mount (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gio mount-event monitor message(via GVolumeMonitor):
NOTHING LISTENED!!
$ ls my-device*
my-device:
内部存储
my-device-2:
内部存储
step3: unmount the first mobile.
$ mount | grep mtp
aft-mtp-mount on /home/ocean/my-device-2 type fuse.aft-mtp-mount (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gio mount-event monitor message(via GVolumeMonitor):
Mount removed: 'my-device'
Mount added: 'my-device-2'
Mount removed: 'my-device' //seems a dup message
Mount added: 'my-device-2' //seems a dup message
step4: unmount the second mobile.
$ mount | grep mtp
NO MOBILE MOUNTED.
gio mount-event monitor message(via GVolumeMonitor):
Mount removed: 'my-device-2'
Mount removed: 'my-device-2' //seems a dup message
DEMO CODE:
Edited by oucaijun