From nobody Mon Feb 28 06:15:56 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 BF3D519EBF1E for ; Mon, 28 Feb 2022 06:15:57 +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 4K6VW04BLFz3snx for ; Mon, 28 Feb 2022 06:15:56 +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 6BF7716431 for ; Mon, 28 Feb 2022 06:15:56 +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 21S6FuP0057406 for ; Mon, 28 Feb 2022 06:15:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21S6FueM057405 for bugs@FreeBSD.org; Mon, 28 Feb 2022 06:15:56 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 262241] gpart(8) destroy: option -F seems to not effectively destroy all partitions in some situations Date: Mon, 28 Feb 2022 06:15:56 +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: grahamperrin@gmail.com 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 bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter 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=1646028956; 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=XYZY1Ff3KEK+iXMAoSx3hFI6m327K5xl7gcys1bT8cc=; b=eGvOykpaUPnHH5asJF+KZAQQWotDo3maZuc/HWYtoaJDeDxjaZlUge04Pd9f47rk41N8ey 6O75bGNog3ySoT3MN7CVD1Oe+vl0eY7wls5IhiXoQWX+aB7R3cvzN5By4NvWqpMRU/TH6E NEQHq8p85YPVO8aXaoiv+fyCPYdLIzb98h/vJO4NZ0AwID2fYw78PNLQi6ex+XOKjPy35K dxT0Q0xZ/USAPhz5r7+IgKQtcmeNQ2/Yv4mN9dfZX3pbNAIptvrEH+j381mbGUQtNZ6QVQ /70vi+bR17BuWaksHtqU21QkaCushbx1bLqNAIe9o3WMzUkwLHkFbDProxhRgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646028956; a=rsa-sha256; cv=none; b=QqlZdtVtbi+7uAb8lQ/EXzlj7mckmy6l7bpZLvjAWDlc+i71oCPabz4X3XfiUE9m0uLHfz sFsunP6CIqT4+drQti9feIsfqdZNg9fFMC6DaG8i/GG05J2iTjEJv3RrtDfH5oiH4Z4lZm T4GW4QI5msq8rh4Ev/ODsR9vuy5Ctcp4e56GvyDNJhX0cSlw532WU9GYr+UeMLzj8BKV6T oX5NHyEQCzggr+5AeHniLiqvjEqijxsrRr+w5BXxOPIxJdMPnhjGz4WeO74Ir5bO6ICFIr xqtunbjjhmyxmB9fBYAVl6P8DJJ7mqNHQ0b5NK+u8xt42Pa+ebjkCjYdG+QgKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262241 Bug ID: 262241 Summary: gpart(8) destroy: option -F seems to not effectively destroy all partitions in some situations Product: Base System Version: CURRENT Hardware: Any URL: https://www.freebsd.org/cgi/man.cgi?query=3Dgpart&sektio n=3D8&manpath=3DFreeBSD#DESCRIPTION OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: grahamperrin@gmail.com From :=20 > =E2=80=A6 -F option can be given with destroy to delete all of the partit= ions=20 > before destroying the partitioning scheme. =E2=80=A6 From :=20 =E2=80=A6 root@mowa219-gjp4-8570p-freebsd:~ # gpart create -s MBR da4 da4 created root@mowa219-gjp4-8570p-freebsd:~ # gpart add -t freebsd da4 da4s1 added root@mowa219-gjp4-8570p-freebsd:~ # gpart create -s BSD da4s1 da4s1 created root@mowa219-gjp4-8570p-freebsd:~ # gpart add -t freebsd-swap da4s1 da4s1a added =E2=80=A6 root@mowa219-gjp4-8570p-freebsd:~ # gpart destroy -F da4 da4 destroyed root@mowa219-gjp4-8570p-freebsd:~ # gpart create -s MBR da4 da4 created root@mowa219-gjp4-8570p-freebsd:~ # gpart add -t freebsd da4 da4s1 added root@mowa219-gjp4-8570p-freebsd:~ # gpart create -s BSD da4s1 gpart: geom 'da4s1': File exists root@mowa219-gjp4-8570p-freebsd:~ # The existence of da4s1 suggests that prior destruction by gpart was not entirely effective. --=20 You are receiving this mail because: You are the assignee for the bug.=