Re: python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-10-07 Thread Adam Borowski
On Mon, Oct 08, 2018 at 02:03:44AM +0200, Hans van Kranenburg wrote: > And yes, when promoting things like the new show_usage example to > programs that are easily available, users will probably start parsing > the output of them with sed and awk which is a total abomination and the > absolute oppo

Re: python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-10-07 Thread Hans van Kranenburg
Hi, On 09/24/2018 01:19 AM, Adam Borowski wrote: > On Sun, Sep 23, 2018 at 11:54:12PM +0200, Hans van Kranenburg wrote: >> Two examples have been added, which use the new code. I would appreciate >> extra testing. Please try them and see if the reported numbers make sense: >> >> space_calculator.p

Re: python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-09-28 Thread Hans van Kranenburg
On 09/24/2018 10:08 AM, Nikolay Borisov wrote: >> >> The bugs are all related to repeated kernel code all over the place >> containing a lot of if statements dealing with different kind of >> allocation profiles and their exceptions. What I ended up doing is >> making a few helper functions instead

Re: python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-09-24 Thread Nikolay Borisov
On 24.09.2018 00:54, Hans van Kranenburg wrote: . > > The bugs are all related to repeated kernel code all over the place > containing a lot of if statements dealing with different kind of > allocation profiles and their exceptions. What I ended up doing is > making a few helper functions ins

Re: python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-09-23 Thread Adam Borowski
On Sun, Sep 23, 2018 at 11:54:12PM +0200, Hans van Kranenburg wrote: > Two examples have been added, which use the new code. I would appreciate > extra testing. Please try them and see if the reported numbers make sense: > > space_calculator.py > --- > Best to be initially describe

python-btrfs v10 preview... detailed usage reporting and a tutorial

2018-09-23 Thread Hans van Kranenburg
Hi all, I'm planning for a python-btrfs release to happen in a about week. All new changes are in the develop branch: https://github.com/knorrie/python-btrfs/commits/develop tl;dr: check out the two new examples added in the latest git commits and see if they provide correct info! ## Detailed u