Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1089540imj; Sat, 9 Feb 2019 15:30:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWPR+ozrAyzHlAGrdf7KeoNaMM0YCLcvMEXLXJQFk8+g/FNsYE3ONDXvhbZslfaSHtmLoc X-Received: by 2002:a17:902:f20a:: with SMTP id gn10mr14760563plb.105.1549755003920; Sat, 09 Feb 2019 15:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549755003; cv=none; d=google.com; s=arc-20160816; b=VzvGebD/kwvN+C4u6bvv1ydHx6GbYxFCWLQ7D2P3C5TYxH98zzBmcmWs96vmlTZYim +AGsHt4BamaIpPo8cjbVWjRU+hr3HqFLqV1RqoRuS2WSAdBl6Kb3yCkWaQaEoA+KZuCv ReM9u8aOTjlWe0uWtOGws+7egT6LhsykLpqVFocz6sP6iSbF3sxz8OqqmRMYonEp3VYx P3xfqVdSZjm2yaKFAUU7ueLW7MQJB23SkipbTsqqDkv/yzw+nKDcnJXQm2QGIqMSj+t+ O5YUIPrV7m+ZcBB4VBc4a2JOC6ENUDP7V+nPVvUjhwi2tRFzFxbzeVJBlRSuLVT8DqzV za6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JN2OxJlWJj4l+AaAFXBMh88DKcwAB+JwNwSQYqUi/9I=; b=omQJUGsdu4NhCoRNkf4bIBJZa45zfSfwSqOKxKOm3LIEuelYficeDfgCCUUIFOG6/5 36GD5+gOhiOJgljkdrHvNZnjyUrfdHdeMvTr14/Hvx+YlafV6fhKpnDmINbtdxApPOAZ 1ccCfknXoTUfFZO5lhDu/ijjKvi2U++zQ0sCDtxg55dlzQ1DXQmSCRcwA4rYbLVLC5LA a+xIZ2+Vu566gMXf5vOlccTJ19Dui5AbqdFkZEWJVis9hKqwLA9cBM1guDityuU0/c1b mKwG+sm7PgXOwIXVBCPWlDhCHdpYy074zvHvdwjkrApkFVANkW92P27bMufrejh25fNo oFiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si237119plo.360.2019.02.09.15.29.34; Sat, 09 Feb 2019 15:30:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbfBIX3b (ORCPT + 99 others); Sat, 9 Feb 2019 18:29:31 -0500 Received: from cloud.peff.net ([104.130.231.41]:38846 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726956AbfBIX3a (ORCPT ); Sat, 9 Feb 2019 18:29:30 -0500 Received: (qmail 7980 invoked by uid 109); 9 Feb 2019 23:29:30 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Sat, 09 Feb 2019 23:29:30 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 1085 invoked by uid 111); 9 Feb 2019 23:29:39 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) SMTP; Sat, 09 Feb 2019 18:29:39 -0500 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Sat, 09 Feb 2019 18:29:28 -0500 Date: Sat, 9 Feb 2019 18:29:28 -0500 From: Jeff King To: Johannes Sixt Cc: "Randall S. Becker" , "'brian m. carlson'" , 'Junio C Hamano' , git@vger.kernel.org, 'Linux Kernel' , git-packagers@googlegroups.com Subject: Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop) Message-ID: <20190209232928.GA7135@sigill.intra.peff.net> References: <002501d4bfde$b26e6050$174b20f0$@nexbridge.com> <20190208191519.GF27673@sigill.intra.peff.net> <002b01d4bfe4$2d617f40$88247dc0$@nexbridge.com> <20190208193157.GA30952@sigill.intra.peff.net> <20190208220714.GG11927@genre.crustytoothpaste.net> <005901d4bffb$6d0c34c0$47249e40$@nexbridge.com> <20190208223512.GA2135@sigill.intra.peff.net> <006601d4c001$2de3a160$89aae420$@nexbridge.com> <20190209042456.GB18286@sigill.intra.peff.net> <38f594ed-0787-aeb5-d34f-2f4775243eb7@kdbg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <38f594ed-0787-aeb5-d34f-2f4775243eb7@kdbg.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 09, 2019 at 09:39:43AM +0100, Johannes Sixt wrote: > > Great. Since it sounds like you're preparing some patches to deal with > > /dev/zero elsewhere, do you want to wrap it up in a patch as part of > > that? > > Please do not use yes to generate an infinite amount of bytes. Our > implementation of yes() in test-lib.sh generates only 99 lines. Ah, thanks. That doesn't matter here, but it would for the other patches under discussion. > Perhaps do this. > [...] > dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=0 && > - dd if=/dev/zero of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=$(($orig_size - $zero_pos)) && > + printf "%0*d" $(($orig_size - $zero_pos)) 0 | tr 0 '\0' | > + dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" && Using stdin instead of the tmpfile is nice, and shouldn't have any problems. I do think your printf suggestion looks nice, but I wondered if it might run into portability issues (not because of anything in particular, but I often find that the more clever a shell solution, the more likely we run into obscure problems). But if it works everywhere, that's fine by me. -Peff