Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2022 16:24:17 +0000
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
Message-ID:  <bug-262241-227-IhjdXV9dV1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262241-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262241

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste@freebsd.org

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
Reproducible with md(4)

# gpart create -s MBR md0
md0 created
# gpart show md0
=>     9  262135  md0  MBR  (128M)
       9  262135       - free -  (128M)

# ls /dev/md0*
/dev/md0
# gpart add -t freebsd md0
md0s1 added
# gpart show md0
=>     9  262135  md0  MBR  (128M)
       9  262135    1  freebsd  (128M)

# ls /dev/md0*
/dev/md0        /dev/md0s1      /dev/md0s1a
# gpart create -s BSD md0s1
gpart: geom 'md0s1': File exists

This doesn't seem like desired behaviour although I am not particularly
surprised by it, and I believe it does not contradict the man page. `gpart
destroy -F` does delete the partition(s) in the MBR scheme: that is md0s1.

At the very least the man page needs to be clear (if we do not change the
behaviour).

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262241-227-IhjdXV9dV1>