Bug 197916 - sysutils/hal: hald doesn't create records for ZFS mount points
Summary: sysutils/hal: hald doesn't create records for ZFS mount points
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
Keywords: needs-qa
Depends on:
Reported: 2015-02-22 11:56 UTC by Yuri Victorovich
Modified: 2021-02-08 10:56 UTC (History)
3 users (show)

See Also:

kde4 program that lists mount points (using HAL) (2.43 KB, application/x-compressed-tar)
2015-02-26 01:49 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?
Comment 5 Mateusz Piotrowski freebsd_committer 2021-02-08 10:56:33 UTC
HAL has been removed from the ports tree in https://svnweb.freebsd.org/ports?view=revision&revision=564691. I'm closing this issue for now because of that.