Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2052817imj; Fri, 8 Feb 2019 11:44:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IazmrAcrjZKKSsMxVUI+qjroE1UuVlt5z/BLrdqooSSMVpuxZVXmzlRrcRRTO1dZs8aSxRT X-Received: by 2002:a65:5003:: with SMTP id f3mr8798750pgo.39.1549655066731; Fri, 08 Feb 2019 11:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549655066; cv=none; d=google.com; s=arc-20160816; b=TITNYiXPg+3Gc9rVARtzs2aV3gOzykkFJZ9qHHf1Z8uoJcWoBTBgTjucMKIp5+z8f7 kIqWDaRAkkA+XCDW06lYZVTi0ZuA1c9lXpUfCmhJZd63Y5XIc0OP8EcYu6NS5dDgSR1H ET+hhuFksFNJnkTZC6Xv8yxdpXfjwUw8wdZz5LhEiDY61+jCpiC9d8Eb31gcUMzeHBDw qbR9fPomD0xu5XWCV+mOssfV/b5kEZlXZcAYkHMpJsHwAKDfhwkfVVtmP6D6/zXE5bWi rmijuXNYgCdAfkAJQ9Y0nllNCvmCFF/v+/sGG2Et4nKkiPROnqPeWsbWeOx6xYwFhQJL pAlg== 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=obmiLpuxKDYHkHtdsc9fZMFdO+Xg8QW2anZJW5FiEqY=; b=p8lE4Qcv3B/6QHPqGzj3Kg5lu5tpwXTcadA9ux6FB+eKqCNtvn/kqwgXIHHOsAcmII JPpDkOgUqEuET+sjDarzVfgpFHyYbx2VQe5wOTos6eW6EjsaDEB05/0Y2aRnVAD094PH DJ7DwmOr4cUOzxkWuDHjoLjV+TGrsNSOyuMm4fTUInsZDAYHO65wfjcmwwaIyDJ6aIO/ pcvC78uSYF+hKfbpMj/VOT4Xx5wj2u5kGz4DfkGD2b5PGuUsOAXGxz0fN0oF+5tOoKjP LNLiH4R55qx1HaaK1zwfrgDJY/K+o26R0KvcopC4H7OppPXl9HKpQTw+oZeIvMgZyRTO oLVQ== 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 z188si2895254pgb.330.2019.02.08.11.44.11; Fri, 08 Feb 2019 11:44:26 -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 S1727907AbfBHTb7 (ORCPT + 99 others); Fri, 8 Feb 2019 14:31:59 -0500 Received: from cloud.peff.net ([104.130.231.41]:37986 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727209AbfBHTb7 (ORCPT ); Fri, 8 Feb 2019 14:31:59 -0500 Received: (qmail 15374 invoked by uid 109); 8 Feb 2019 19:31:59 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Fri, 08 Feb 2019 19:31:59 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 26801 invoked by uid 111); 8 Feb 2019 19:32:08 -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; Fri, 08 Feb 2019 14:32:08 -0500 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 08 Feb 2019 14:31:57 -0500 Date: Fri, 8 Feb 2019 14:31:57 -0500 From: Jeff King To: "Randall S. Becker" Cc: '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: <20190208193157.GA30952@sigill.intra.peff.net> References: <000f01d4bf9e$a508eab0$ef1ac010$@nexbridge.com> <20190208165052.GC23461@sigill.intra.peff.net> <001101d4bfd6$b9430230$2bc90690$@nexbridge.com> <20190208180321.GB27673@sigill.intra.peff.net> <002501d4bfde$b26e6050$174b20f0$@nexbridge.com> <20190208191519.GF27673@sigill.intra.peff.net> <002b01d4bfe4$2d617f40$88247dc0$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <002b01d4bfe4$2d617f40$88247dc0$@nexbridge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 02:26:17PM -0500, Randall S. Becker wrote: > > > For this, we could use truncate -s count file instead of dd to get a > > > fixed size file of nulls. This would remove the need for /dev/zero in > > > t5318 (the patch below probably will wrap badly in my mailer so I can > > > submit a real patch separately. > > > > I don't think "truncate" is portable, though. > > It is available AFAIK on Linux, POSIX, and Windows under Cygwin. > That's more than /dev/zero has anyway. I have the patch ready if you > want it. Is it POSIX? Certainly truncate() is, but I didn't think the command-line tool was. If it really is available everywhere, then yeah, I'd be fine with it. > > > > Other cases don't seem to actually care that they're getting NULs, > > > > and are just redirecting stdin from /dev/zero to get an infinite > > > > amount of input. They could probably use "yes" for that. > > > > > > What about reading from /dev/null? > > > > That would yield zero bytes, not an infinite number of them. > > So something like: yes | tr 'y' '\0' | stuff? Exactly (if we even care about them being NULs; otherwise, we can omit the "tr" invocation). -Peff