#380 Bind mounting a partition ignores show_internal_volume

closed-wont-fix
nobody
None
5
2010-11-14
2010-11-04
yar
No

System:
Archlinux x86_64. latest libfm-git and pcmangm-git as of today 20101103

Problem:
If you have show_internal_volumes=0 set in libfm.conf and open pcmanfm. It correctly does not display the /dev/sdX# partitions in the side panel. However should you bind mount a partition elsewhere, the /dev/sdX# shows up in pcmanfm. If you bind mount a directory in the partition itself this does not occur.

Expected Action:
It would continue to ignore the internal partition and not display sdX#.

example:
I have /dev/sdb1 mounted at /mnt/storage

I issue 'mount -obind /mnt/storage /tmp/testing' the sdb1 shows up in the side panel.
(gdb) run
Starting program: /usr/bin/pcmanfm
[Thread debugging using libthread_db enabled]
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdc1
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdb1
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda1
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda2
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda3
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdc
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdb
** (pcmanfm:29461): DEBUG: device_added: /org/freedesktop/UDisks/devices/sr0
[New Thread 0x7fffeca28710 (LWP 29464)]
[New Thread 0x7fffe7f9f710 (LWP 29465)]
[Thread 0x7fffe7f9f710 (LWP 29465) exited]
[Thread 0x7fffeca28710 (LWP 29464) exited]
** (pcmanfm:29461): DEBUG: device_changed: /org/freedesktop/UDisks/devices/sdb1
** (pcmanfm:29461): DEBUG: on_idle: 1
** (pcmanfm:29461): DEBUG: g_udisks_device_changed
** (pcmanfm:29461): DEBUG: add vol: 0x9e7ca0, uuid: c81caef4-e101-43a6-bcfc-2e1e0ca1a5f9, udi: (null)
[New Thread 0x7fffeca28710 (LWP 29472)]
[Thread 0x7fffeca28710 (LWP 29472) exited]

However if I do a 'mount -obind /mnt/storage/logs /tmp/testing2', sdb1 does not show up.
(gdb) run
Starting program: /usr/bin/pcmanfm
[Thread debugging using libthread_db enabled]
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdc1
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdb1
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda1
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda2
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda3
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdc
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sdb
** (pcmanfm:29491): DEBUG: device_added: /org/freedesktop/UDisks/devices/sr0
[New Thread 0x7fffeca28710 (LWP 29494)]
[New Thread 0x7fffe7f9f710 (LWP 29495)]
[Thread 0x7fffe7f9f710 (LWP 29495) exited]

Discussion

  • yar
    yar
    2010-11-04

    • summary: Bind mounting a partition ignores --> Bind mounting a partition ignores show_internal_volume
     
  • PCMan
    PCMan
    2010-11-14

    Whether a volume is considered system internal depends on the info returned by udisks. We don't do any special tricks here. So I think this is a limitation or bug of udisks. Report to udisks developers instead. Thanks.

     
  • PCMan
    PCMan
    2010-11-14

    • status: open --> closed-wont-fix