From nobody Wed Jul 13 06:55:41 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7F5641D0B8D4 for ; Wed, 13 Jul 2022 06:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LjT0Z1v63z4Q4J for ; Wed, 13 Jul 2022 06:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LjT0Z0tBlzDbx for ; Wed, 13 Jul 2022 06:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26D6tgRK000790 for ; Wed, 13 Jul 2022 06:55:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26D6tgHp000789 for bugs@FreeBSD.org; Wed, 13 Jul 2022 06:55:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265184] gunion(8) create has exit code 1 on success Date: Wed, 13 Jul 2022 06:55:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pho@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657695342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4vrbl3Q8dsAdbSu0RYVwVqMzNI6dyEynt8UokM2/SCc=; b=rELjUUd/GP7FAOCC2sdqFfadIAcgBCtZK1xIE1b6k38nBayHwnehC51aEGR8+39/iabZWf aaTSwmrfF4X3Upjyk4Hdx93kqAdrbmi+uU2o4c4r056PC6OpEa62LfTvTCfWOoSK+OUCCa rYd9LaKmqmXkzyEER+w5ITGuMEQ+6VKtNHkqjlmEV9a/8vbHVSO61x7PMOJSc1BR0qjkOy yOWVe4cTy9mJ2d0iA6OZ6XqWC1HbSNqSv8dIcBChLHPRT5iOqqMbsWTWlojiUcQfy0wqFh OoruBqmYhtauGXblWqGar+C7vD5NNhYA1X16WO18URrAu3VDnaAkCgSBGapGgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657695342; a=rsa-sha256; cv=none; b=fGXE07V3TKvnvFtVXcOYR2tqnb678yDilWzWj5Vw5ct1o1sNDY+K2s64AouPE5mUFOsO7X uzfFxJ/seyC3WqY5m5ngjf//bcyxky5i4RtK8a+361qcZUlq/gGa9wxRiGy0EuyM2xlsFT mUkGKtvw/I/iOwYp0sHIq3zk7UJ+JEEhAjcDy2fgeaV/Fd3fOvchs54N6RhHWNInYxRgk7 Chmh/lwRk1jLH3KLzAJ7HbkkhmTbyOmsqddDA94BJHs8I+hGFl1v+IpFrpHfXW3RxX/HO/ EVlopbkxGs9ZuGRRz0OBcU2BIT+4dZPMD58B8eve2zzjCrDuhTVk/SA2H75KAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265184 Bug ID: 265184 Summary: gunion(8) create has exit code 1 on success Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pho@FreeBSD.org Created attachment 235229 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235229&action= =3Dedit Reproducer "union create" seems to return an incorrect error status for the "create" command: [root@mercat1 /usr/src/tools/test/stress2/misc]# ./gun.sh + gunion create -v /dev/md11 /dev/md10 gunion: Device md11-md10.union created with memory map size 1315888. + s=3D1 + [ 1 -ne 0 ] + echo 'gunion create returned 1' gunion create returned 1 + ls -l /dev/md10 /dev/md11 /dev/md11-md10.union /dev/mdctl crw-r----- 1 root operator 0xac Jul 13 07:18 /dev/md10 crw-r----- 1 root operator 0xae Jul 13 07:18 /dev/md11 crw-r----- 1 root operator 0xb0 Jul 13 07:18 /dev/md11-md10.union crw------- 1 root wheel 0x10 Jul 13 07:12 /dev/mdctl + set -e + gunion commit /dev/md11-md10.union + gunion destroy /dev/md11-md10.union + set +x [root@mercat1 /usr/src/tools/test/stress2/misc]# uname -a FreeBSD mercat1.netperf.freebsd.org 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n256675-becd9908beb8f: Tue Jul 12 20:45:53 CEST 2022=20=20=20=20 pho@mercat1.netperf.freebsd.org:/usr/src/sys/amd64/compile/PHO amd64 [root@mercat1 /usr/src/tools/test/stress2/misc]#=20 $ --=20 You are receiving this mail because: You are the assignee for the bug.=