mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
Bring us closer to avoiding the use of two different methods to access UDisks DBus API: UDisks2 client library and direct DBus access with GDBus. Perform formatting of the bytes outside of udisks2 module to avoid depending on Django. Tests performed: - Visit the storage page. Disks are listed properly. - Sizes are formatted to be human readable. - Filesystem type is show properly: ext4, btrfs - Labels for disks are shown as set by tune2fs etc. - Device paths are shown properly. - Mount point is shown properly. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>