Bug 197916

Summary: sysutils/hal: hald doesn't create records for ZFS mount points
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: freebsd-gnome mailing list <gnome>
Status: Open ---    
Severity: Affects Only Me CC: 0mp, arved, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
kde4 program that lists mount points (using HAL) none

Description Yuri Victorovich freebsd_committer 2015-02-22 11:56:29 UTC
UFS disks have this line in their hald descriptor:
> org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'}
And ZFS disks don't have method_names

As a result, this kde code fails to find ZFS mount points:
>  foreach (const Solid::Device &device, Solid::Device::listFromType(Solid::DeviceInterface::StorageAccess)) {
>    qDebug() << "mount=" << device.as<Solid::StorageAccess>()->filePath() << " udi="<<device.udi();
>  }

KDE uses this line to test for the mounted storage device (in kdelibs):
> prop("org.freedesktop.Hal.Device.Volume.method_names").toStringList().contains("Mount")

Particular symptom that lead me to this is that sysutils/filelight-kde4 crosses into ZFS file systems when it is asked to scan only one file system.
Comment 1 Yuri Victorovich freebsd_committer 2015-02-23 19:32:55 UTC
In short, hald doesn't create the record for ZFS mounts.

It appears that hald creates device records based on /dev/, /dev/label/, and /dev/gpt*/ entries. However, for ZFS there is no 1-1 relationship between the mount point and device, and devices can be dynamically added or removed. It should create the separate entry for every ZFS mount point as well, which isn't based on /dev/ hierarchy.
Comment 2 Yuri Victorovich freebsd_committer 2015-02-26 01:49:26 UTC
Created attachment 153536 [details]
kde4 program that lists mount points (using HAL)

Attaching sample kde4 project that prints all mount points, obtained from hal.
Comment 3 Walter Schwarzenfeld freebsd_triage 2018-01-11 18:46:47 UTC
No maintainer feedback till now!
Comment 4 Walter Schwarzenfeld freebsd_triage 2019-08-16 14:39:45 UTC
Any news here?