Date: Sat, 18 May 2019 15:53:46 +0300 From: Toomas Soome <tsoome@me.com> To: Alexey Dokuchaev <danfe@freebsd.org> Cc: Allan Jude <allanjude@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r347953 - head/cddl/contrib/opensolaris/cmd/zfs Message-ID: <826320C2-9DF0-4C22-8234-E0F66F8AAEB2@me.com> In-Reply-To: <20190518123708.GA73234@FreeBSD.org> References: <201905181227.x4ICRMsG073717@repo.freebsd.org> <20190518123708.GA73234@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 18 May 2019, at 15:37, Alexey Dokuchaev <danfe@freebsd.org> wrote: >=20 > On Sat, May 18, 2019 at 12:27:22PM +0000, Allan Jude wrote: >> New Revision: 347953 >> URL: https://svnweb.freebsd.org/changeset/base/347953 >>=20 >> Log: >> MFV/ZoL: `zfs userspace` ignored all unresolved UIDs after the first >>=20 >> zfsonlinux/zfs@88cfff182432e4d1c24c877f33b47ee6cf109eee >>=20 >> zfs_main: fix `zfs userspace` squashing unresolved entries >>=20 >> ... >> @@ -2368,10 +2369,12 @@ us_compare(const void *larg, const void = *rarg, void *u >> if (rv64 !=3D lv64) >> rc =3D (rv64 < lv64) ? 1 : -1; >> } else { >> - (void) nvlist_lookup_string(lnvl, = propname, >> - &lvstr); >> - (void) nvlist_lookup_string(rnvl, = propname, >> - &rvstr); >> + if ((nvlist_lookup_string(lnvl, = propname, >> + &lvstr) =3D=3D ENOENT) = || >> + (nvlist_lookup_string(rnvl, = propname, >> + &rvstr) =3D=3D ENOENT)) = { >> + goto compare_nums; >> + } >=20 > Another thing not to like about ZoL: their completely bogus code style > and formatting practices (look at those "&rvstr) =3D=3D ENOENT"). If = they > are going to listen to us, can we at least try to convince them not to > break existing, much FreeBSD-like formatting? >=20 > ./danfe >=20 Actually it is required to use the proper cstyle=E2=80=A6 = https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#styl= e-guides = <https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#sty= le-guides> Therefore bogus style is bug. rgds, toomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?826320C2-9DF0-4C22-8234-E0F66F8AAEB2>