| Summary: | Device Notifier fails to ignore LUKS volume despite solid rules | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Michael Büker <mb> |
| Component: | Disks & Devices widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REOPENED --- | ||
| Severity: | normal | CC: | cardboardaardvark, kde, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.4.3 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 6.2.0 | |
| Sentry Crash Report: | |||
| Attachments: |
Unwanted entry in Device Notifier
Output of solid-hardware confirming the ignore property |
||
|
Description
Michael Büker
2016-06-04 10:23:23 UTC
Created attachment 99362 [details]
Unwanted entry in Device Notifier
Created attachment 99363 [details]
Output of solid-hardware confirming the ignore property
I have the same issue, though my LUKS volumes are non-removable (and I have Device Notifier configured to show all devices). Despite that I have set UDISKS_IGNORE="1" on my LUKS volumes, Device Notifier still shows them. As in Comment 2, solid-hardware5 shows 'StorageAccess.ignored' and 'StorageVolume.ignored' are both true. Device Notifier respects the 'ignored' hints on my non-LUKS volumes, but it apparently ignores the hint on LUKS volumes. I am on Plasma 5.18.3. If it works in Solid, but not the applet, that would be a bug in the Data Engine which acts as a go-between. Moving there. Perhaps this could be fixed by porting the applet away from the data engine and using Solid directly. That'll probably happen in Plasma 6 at the latest, after Data Engines are removed. I know Kai had a WIP branch to port it to a saner backend so maybe that could be done sooner. That has now happened for Plasma 6.2.0. Reopening because I've been tearing my hair out trying to figure out why I can't stop my encrypted external storage from showing up in the device notifier. My experience is identical to the original report. I see a comment that this bug has been fixed in Plasma 6.2 but I am running Plasma 6.3 coming out of Debian Trixie and I can't get this noise in the device notifier to go away. Like the original report, I am able to successfully ignore other external storage. It appears to be the presence of LUKS that makes it unignorable.
I set a rule in udev:
ACTION=="add|change", SUBSYSTEM=="block", ENV{ID_USB_SERIAL}=="USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0", ENV{UDISKS_IGNORE}="1"
I don't seem to have a solid-hardware binary but can confirm HINT_IGNORE makes it into udisks (via udisksctl dump) for the entire drive and the partition:
/org/freedesktop/UDisks2/block_devices/sdc:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdc
DeviceNumber: 2080
Drive: '/org/freedesktop/UDisks2/drives/USB_SanDisk_3_2e2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df'
HintAuto: true
HintIconName:
HintIgnore: true
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id:
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdc
ReadOnly: false
Size: 494206451712
Symlinks: /dev/disk/by-diskseq/99
/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0
/dev/disk/by-path/pci-0000:02:00.0-usbv2-0:7:1.0-scsi-0:0:0:0
UserspaceMountOptions:
org.freedesktop.UDisks2.PartitionTable:
Partitions: /org/freedesktop/UDisks2/block_devices/sdc1
Type: dos
/org/freedesktop/UDisks2/block_devices/sdc1:
org.freedesktop.UDisks2.Block:
Configuration: [('crypttab', {'name': <b'backup01'>, 'device': <b'UUID=de9ab957-6766-4788-8d55-768d28587718'>, 'passphrase-path': <b'/etc/crypt/backup01'>, 'options': <
b'noauto'>})]
CryptoBackingDevice: '/'
Device: /dev/sdc1
DeviceNumber: 2081
Drive: '/org/freedesktop/UDisks2/drives/USB_SanDisk_3_2e2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff
85801881558107ce3000df'
HintAuto: true
HintIconName:
HintIgnore: true
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id: by-uuid-de9ab957-6766-4788-8d55-768d28587718
IdLabel: backup01
IdType: crypto_LUKS
IdUUID: de9ab957-6766-4788-8d55-768d28587718
IdUsage: crypto
IdVersion: 2
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdc1
ReadOnly: false
Size: 494205403136
Symlinks: /dev/disk/by-diskseq/99-part1
/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0-part1
/dev/disk/by-label/backup01
/dev/disk/by-partuuid/a03c4120-01
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-label/backup01
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-partnum/1
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-partuuid/a03c4120-01
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-uuid/de9ab957-6766-4788-8d55-768d28587718
/dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part1
/dev/disk/by-path/pci-0000:02:00.0-usbv2-0:7:1.0-scsi-0:0:0:0-part1
/dev/disk/by-uuid/de9ab957-6766-4788-8d55-768d28587718
UserspaceMountOptions:
org.freedesktop.UDisks2.Encrypted:
ChildConfiguration: []
CleartextDevice: '/'
HintEncryptionType:
MetadataSize: 16777216
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 1048576
Size: 494205403136
Table: '/org/freedesktop/UDisks2/block_devices/sdc'
Type: 0x83
UUID: a03c4120-01
I don't see any other relevant entries.
|