HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
291 stars 37 forks source link

[DISK] BTRFS implementation fixes #56

Closed ingrinder closed 4 years ago

ingrinder commented 4 years ago

Description

This PR allows the inclusion of btrfs filesystems in the disk space module without root, and fixes the behaviour of the btrfs implementation.

Reason and / or context

Current behaviour is incorrect for btrfs filesystems:-

How has this been tested ?

Types of changes :

Checklist :

HorlogeSkynet commented 4 years ago

A few days later... He finally made it. :calendar:


So... Hello @ingrinder ! Thanks for all the work you have done (and are doing) :bow: About this PR, I've just rebased it against master, and taken the freedom to add some changes. If you are :ok: about them, I'd be glad to merge it A.S.A.P. :ok_hand:

PS : I can't officially ask for your review from GitHub (as you are not counted as a collaborator), but we can do something about it in the near future if you are interested too.

Bye, see you on the other sides !


EDIT : and sorry for my first poor BTRFS implementation, I don't know this FS very well :confused:

ingrinder commented 4 years ago

All looks good to me!

Only thing I'd like to ask is about how far back are we aiming for in terms of compatibility? I noticed we have Python 3.4 specified in the CI builds, and given Debian Jessie is still in LTS (at least for a few months) I assumed we were aiming for something around there? Which may mean reversion of 9c859e4368e49d0aaf119a9c91fb41fdcba5f053, since btrfs-progs is only a package in Stretch and later whereas btrfs-tools is supported in Jessie, and later versions as a meta-package for btrfs-progs (meaning btrfs-tools works everywhere in Debian).

Other than that though, feel free to merge 👍

HorlogeSkynet commented 4 years ago

Yes ! It would be very good to keep compatibility down to 3.4, as you said, for Debian Jessie (that's a fact, lots of servers are still running Debian 8).

So you are definitely right, I'll partially revert this last commit to restore btrfs-tools for future .DEB generations


EDIT @ingrinder : Actually not ! As stated here, .DEB do not work on Jessie, as python3-distro is not packaged in repositories (see #36). So I we may keep btrfs-progs for Stretch and newer :wink:

ingrinder commented 4 years ago

Ahh yeah, okay, we should probably just keep btrfs-progs then 😃