Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YhmXW-0005m0-5n for mharc-grub-devel@gnu.org; Mon, 13 Apr 2015 18:09:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhmXT-0005lI-AL for grub-devel@gnu.org; Mon, 13 Apr 2015 18:09:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhmXO-0001fA-9d for grub-devel@gnu.org; Mon, 13 Apr 2015 18:09:07 -0400 Received: from nk11p03mm-asmtp001.mac.com ([17.158.232.236]:58440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhmXM-0001b5-D5 for grub-devel@gnu.org; Mon, 13 Apr 2015 18:09:02 -0400 Received: from nazgul.lan (187-89-235-80.dyn.estpak.ee [80.235.89.187]) by nk11p03mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NMR00KUJMUHO410@nk11p03mm-asmtp001.mac.com> for grub-devel@gnu.org; Mon, 13 Apr 2015 22:08:45 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-13_05:2015-04-10, 2015-04-13, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1504130189 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: zfs pool devices detection in core/osdep/unix/getroot.c From: Toomas Soome In-reply-to: <20150413212154.0be15cf1@opensuse.site> Date: Tue, 14 Apr 2015 01:08:40 +0300 Content-transfer-encoding: quoted-printable Message-id: <70099C13-2B91-4077-9214-DAAA984E0020@me.com> References: <20150413212154.0be15cf1@opensuse.site> To: The development of GNU GRUB X-Mailer: Apple Mail (2.2098) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 17.158.232.236 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2015 22:09:08 -0000 >=20 > Could you please send git format-patch (or git send-email) ready to > apply? As far as I know policy, patches on behalf of others are rather > frowned upon. >=20 will do. however, I just realised, this one needs to be delayed till = actual zfs update is passed and accepted, which probably will take some = time due to size=E2=80=A6=20 >> - for (i =3D 0; i < nvlist_count; i++) >> - { >> - if (nvlist_lookup_string (children[i], "path", &device) !=3D = 0) >> + if (nvlist_lookup_nvlist_array (vdev_tree, "children", &children, = &nvlist_count) !=3D 0){ >=20 > curly braces style >=20 updated. >>=20 >> + } else { >=20 > curly braces style >=20 updated. >> + for (i =3D 0; i < nvlist_count; i++) >> + { >> + grub_util_find_child_vdevs(children[i], devices, ndevices, = devices_allocated); >> + } >> + } >=20 > all braces in this branch are reundant. removed inner ones, however, I think outer ones, even as strictly not = needed, might still help readability. rgds, toomas