From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:48682 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727229AbeIXOJ1 (ORCPT ); Mon, 24 Sep 2018 10:09:27 -0400 Subject: Re: python-btrfs v10 preview... detailed usage reporting and a tutorial To: Hans van Kranenburg , linux-btrfs References: From: Nikolay Borisov Message-ID: Date: Mon, 24 Sep 2018 11:08:31 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: 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 instead, see the commit "Add volumes.py, > handling device / chunk logic". It would probably be nice to do the same > in the kernel code, which would also solve the mentioned bugs and > prevent new similar ones from happening. Would you care to report each bug separately so they can be triaged and fixed? > > Have fun, >