[Fstab] Show mounted "overlay" filesystems
ClosedPublic

Authored by bruns on Jun 24 2019, 4:42 PM.

Details

Summary

Overlay filesystems are not enumerated by udisks, so add support for these
to the fstab backend

See also D15739

Test Plan

$> grep overlay /proc/self/mounts

NAME /mnt overlay rw,relatime,lowerdir=/home/stefan/tmp/,upperdir=/tmp/overlay/rw,workdir=/tmp/overlay/work 0 0
NAME /home/stefan/tmp2 overlay rw,relatime,lowerdir=/home/stefan/tmp/,upperdir=/tmp/overlay2/rw,workdir=/tmp/overlay2/work 0 0

$> solid-hardware5 list details
...
udi = '/org/kde/fstab/overlay/mnt'

parent = '/org/kde/fstab'  (string)
vendor = 'overlay'  (string)
product = '/mnt'  (string)
description = '/mnt (overlay)'  (string)
icon = 'folder'  (string)
StorageAccess.accessible = true  (bool)
StorageAccess.filePath = '/mnt'  (string)
StorageAccess.ignored = false  (bool)

udi = '/org/kde/fstab/overlay/home/stefan/tmp2'

parent = '/org/kde/fstab'  (string)
vendor = 'overlay'  (string)
product = '~/tmp2'  (string)
description = '~/tmp2 (overlay)'  (string)
icon = 'folder'  (string)
StorageAccess.accessible = true  (bool)
StorageAccess.filePath = '/home/stefan/tmp2'  (string)
StorageAccess.ignored = false  (bool)

Diff Detail

Repository
R245 Solid
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Jun 24 2019, 4:42 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJun 24 2019, 4:42 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jun 24 2019, 4:42 PM
This revision is now accepted and ready to land.Jun 25 2019, 7:38 AM
broulik accepted this revision.Jun 25 2019, 8:38 AM
ngraham accepted this revision.Jun 25 2019, 8:46 AM

Yep, looks good to me too.

This revision was automatically updated to reflect the committed changes.