Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fGUtg-00065j-HM for mharc-grub-devel@gnu.org; Wed, 09 May 2018 15:37:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGUtd-00065b-Rr for grub-devel@gnu.org; Wed, 09 May 2018 15:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGUtY-00026a-KB for grub-devel@gnu.org; Wed, 09 May 2018 15:37:05 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:53370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGUtY-00026B-Cw for grub-devel@gnu.org; Wed, 09 May 2018 15:37:00 -0400 Received: by mail-wm0-x243.google.com with SMTP id a67-v6so358880wmf.3 for ; Wed, 09 May 2018 12:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FKn9LaHkk7buaiDNmW8R2l8c8pQNMHrkmkB+XamBLTA=; b=OC/OLRpyaw0eB/SyDHKjyiP7p+iyI/tSpsicDj41NqWFBoP5qBvFzOKAk8D7dmhkf1 W07y1aeI8bRX731PV4cuzdBiqYvt7OOsGVOTiD9+QMgWIwu92SkkXidpt/Y9ycFYOWDs Pa7NC5G5Nl4Oyc4VZXpYzyIa652ECdlgb5fjUn7zY6Q2+md2s8YXMOly1yjPrnScMqlT CBWKboEg4ZNm22BJ1KYtZKaFEMnZKFp1IGz2QPxrJMH3yd9h3tR8+v1ezRMdBj8RhYu5 K/yBSPrcQW3xxZiBISYC+5iLOhmyvIOiIqjc7WYQdGo33Ip8yV/u6CJ7i5taYYsJoYJU pn1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:references:cc:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=FKn9LaHkk7buaiDNmW8R2l8c8pQNMHrkmkB+XamBLTA=; b=LZDq+TM/xj2aKwzS8L7LkkUVzR2ZrwOcT9EtUxq+vpJJFSKCBed4s0XymVAZm3/ai6 gUsyCTeDuvAGPz4hBEZzUbZJJ9G9FYQz1/IgmkVAAconoMjKEa7Rblx3+DUnhTne81eG +B1IzNfSLrof2jknZy2t1yTRH+LzWrAFJn19nM+WS0umA17XyICVbGAAdGz3hO1bQu60 g/a9kgjaJYxmAw4VrBBd0XARTPsz4VvXfu05wHf4Qei5Pv5NxWl9vQUaZBj5zO4N33bP pqGefgsooMDrJVjG0Jbxq4ngnKPLILJq98r5X0NGRYdiRQqLqfuYaiMQRfJFqjnfAoYu mqmQ== X-Gm-Message-State: ALQs6tBuaVXH4MHIe1uL5P8I6vbz0wu4ifSg6k9wmfJ848N2FDUXtUHZ WlxxBgGKt75R7ox/D6/+SYIRAQ== X-Google-Smtp-Source: AB8JxZo4F0DX/XCufWNGd9IAy2rvFEdED8EfzGSAJaW5DcF+T84c86coxz9G8JpQn9bjvO1M/ylhFQ== X-Received: by 2002:a50:a2e5:: with SMTP id 92-v6mr61830804edm.82.1525894618883; Wed, 09 May 2018 12:36:58 -0700 (PDT) Received: from venice.bhome (84-223-216-156.adsl-wholesale.clienti.tiscali.it. [84.223.216.156]) by smtp.googlemail.com with ESMTPSA id v17-v6sm17188997edl.47.2018.05.09.12.36.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 12:36:57 -0700 (PDT) Reply-To: kreijack@inwind.it Subject: Re: [PATCH V2] Add support for BTRFS raid5/6 to GRUB To: Daniel Kiper References: <20180424191316.11031-1-kreijack@inwind.it> <20180509170055.GI25320@router-fw-old.local.net-space.pl> Cc: grub-devel@gnu.org From: Goffredo Baroncelli Message-ID: Date: Wed, 9 May 2018 21:36:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509170055.GI25320@router-fw-old.local.net-space.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2018 19:37:07 -0000 On 05/09/2018 07:00 PM, Daniel Kiper wrote: > On Tue, Apr 24, 2018 at 09:13:09PM +0200, Goffredo Baroncelli wrote: >> >> Hi All, >> >> the aim of this patches set is to provide support for a BTRFS raid5/6 >> filesystem in GRUB. >> >> The first patch, implements the basic support for raid5/6. I.e this works when >> all the disks >> are present. >> >> The next 4 patches, are preparatory ones. >> >> The last two implements the support for raid5/6 recovery. It allow to read >> from the filesystem even when 1 or 2 (for raid 6) disk(s) are missing. >> >> The last one is the more controversial. The code for the raid6 recovery is >> copied from the GRUB file reaid6_recovery.c . I preferred this approach, >> because the original code assumes that the read is GRUB_DISK_SECTOR_SIZE >> bytes based (512 bytes). Instead the GRUB BTRFS implementation need to >> read the disk with a granularity of the byte. >> I tried to update the code (and the function which the code calls), but >> the change was quite invasive. So for now I preferred to duplicating the >> code, to get some feedback. >> >> I tested the code in grub-emu, and it works (for me) both with all the disks, >> and with some disks missing. I checked the sh1sums calculated from grub and >> from linux and these matched. >> >> Comments are welcome. > > Mostly nitpicks. However, if we can reuse reaid6_recovery.c somehow that > will be great. Even if this require some more patches. I liked the idea too. I am not sure to be able to tests all the cases. Do you know if it exists a list of tests about raid6_recovery and dm ? Anyway, I update the patch. Tomorrow I will test these and then I issue the patch set. BR > > Daniel > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > -- gpg @keyserver.linux.it: Goffredo Baroncelli Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5