From owner-freebsd-current@freebsd.org Thu Sep 10 16:30:20 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8683D3DC60E for ; Thu, 10 Sep 2020 16:30:20 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [202.12.127.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BnPWH3pRyz4GTh; Thu, 10 Sep 2020 16:30:19 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id BF4483F55C; Thu, 10 Sep 2020 12:30:16 -0400 (EDT) Subject: Re: buildworld: "cp: /dev/null: Invalid argument" To: Ryan Stone Cc: FreeBSD Current , Alan Somers References: <07df44dc-5635-121e-bcd0-f5bb6c70ee54@protected-networks.net> From: Michael Butler Message-ID: Date: Thu, 10 Sep 2020 12:30:16 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-NZ X-Rspamd-Queue-Id: 4BnPWH3pRyz4GTh X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.79 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[protected-networks.net:s=201508]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(0.20)[0.195]; NEURAL_HAM_LONG(-0.99)[-0.986]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[protected-networks.net:+]; DMARC_POLICY_ALLOW(-0.50)[protected-networks.net,reject]; NEURAL_HAM_MEDIUM(-1.00)[-1.002]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5716, ipnet:202.12.127.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 16:30:20 -0000 On 9/10/20 12:17 PM, Ryan Stone wrote: > I'm curious: does this give a similar issue? > > touch /tmp/foo > cp /tmp/foo /tmo/foo2 > > I'm wondering if the issue is that copy_file_range isn't handling > empty files, or if it's a devfs issue. An empty file doesn't generate the error .. imb@vm01:/home/imb> touch xx imb@vm01:/home/imb> cp xx yy imb@vm01:/home/imb> imb@vm01:/home/imb> cp /dev/null yy cp: /dev/null: Invalid argument imb@vm01:/home/imb> > > On Thu, Sep 10, 2020 at 11:45 AM Michael Butler > wrote: >> It seems that SVN r365549 broke "cp /dev/null ..." >> >> imb >> >> On 9/10/20 10:35 AM, Michael Butler wrote: >>> Is anyone else seeing failures like this in building world and, in my >>> case, cron jobs as well? >>> >>> >>> Building /usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/zfsboot.ldr >>> --- all_subdir_sbin --- >>> Building /usr/obj/usr/src/amd64.amd64/sbin/bsdlabel/bsdlabel >>> --- all_subdir_stand --- >>> --- zfsboot.ldr --- >>> cp: /dev/null: Invalid argument >>> *** [zfsboot.ldr] Error code 1 >>> make[5]: *** zfsboot.ldr removed >>> --- all_subdir_kerberos5 --- >>> Building /usr/obj/usr/src/amd64.amd64/kerberos5/usr.sbin/iprop-log/iprop-log >>> --- all_subdir_stand --- >>> >>> make[5]: stopped in /usr/src/stand/i386/zfsboot >>> .ERROR_TARGET='zfsboot.ldr' >>> .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/zfsboot.ldr.meta' >>> .MAKE.LEVEL='5' >>> MAKEFILE='' >>> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' >>> _ERROR_CMD='cp /dev/null zfsboot.ldr;' >>> .CURDIR='/usr/src/stand/i386/zfsboot' >>> .MAKE='make' >>> .OBJDIR='/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot' >>> .TARGETS='all' >>> DESTDIR='/usr/obj/usr/src/amd64.amd64/tmp' >>> LD_LIBRARY_PATH='' >>> MACHINE='amd64' >>> MACHINE_ARCH='amd64' >>> MAKEOBJDIRPREFIX='' >>> MAKESYSPATH='/usr/src/share/mk' >>> MAKE_VERSION='20200902' >>> >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"