Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Ed Maste
On Thu, 25 Jan 2024 at 17:26, Robert R. Russell wrote: > > FYI gpart doesn't allow you to create disklabel with more than 8 items > either. Specify the number of partitions at `gpart create` time: # mdconfig -s 1G -t swap md0 # gpart create -s bsd -n 20 md0 md0 created # for i in $(jot 19); do g

make buildworld failure on arm64 on -current n267777

2024-01-25 Thread void
In /usr/src # git rev-list --count --first-parent HEAD 26 include/machine -> /usr/src/sys/arm64/include Building /usr/obj/usr/src/arm64.aarch64/stand/efi/loader_4th/vers.c Building /usr/obj/usr/src/arm64.aarch64/stand/efi/loader_4th/8x16.c Building /usr/obj/usr/src/arm64.aarch64/stand/efi/l

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Robert R. Russell
On Wed, 24 Jan 2024 10:44:57 -0500 Ed Maste wrote: > MBR (PC BIOS) partition tables were historically maintained with > fdisk(8), but gpart(8) has long been the preferred method for working > with partition tables of all types. fdisk has been declared as > obsolete in the man page since 2015. Sim

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Cy Schubert
In message <20240125101308.92e93...@slippy.cwsent.com>, Cy Schubert writes: > In message <84c6f3b1-58b3-44f8-aeaf-35f78e059...@quip.cz>, Miroslav Lachman > wri > tes: > > On 25/01/2024 06:50, Cy Schubert wrote: > > > In message > > > l. > > c > > > > > > >> > > >> What can they do that gpart can

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Rodney W. Grimes
> On Thu, Jan 25, 2024, 9:11?AM Ed Maste wrote: > > > On Thu, 25 Jan 2024 at 11:00, Rodney W. Grimes > > wrote: > > > > > > > These will need to be addressed before actually removing any of these > > > > binaries, of course. > > > > > > You seem to have missed /rescue. Now think about that long

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Bakul Shah
On Jan 25, 2024, at 8:15 AM, Warner Losh wrote: > > What can fdisk and/or disklabel repair that gpart can't? May be add a section in gpart that shows how to map fdisk & bsdlabel functionality to gpart? Better still, why not provide scripts for fdisk/bsdlabel that use gpart underneath? FreeBSD sh

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Warner Losh
On Thu, Jan 25, 2024, 9:11 AM Ed Maste wrote: > On Thu, 25 Jan 2024 at 11:00, Rodney W. Grimes > wrote: > > > > > These will need to be addressed before actually removing any of these > > > binaries, of course. > > > > You seem to have missed /rescue. Now think about that long > > and hard, the

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Ed Maste
On Thu, 25 Jan 2024 at 11:00, Rodney W. Grimes wrote: > > > These will need to be addressed before actually removing any of these > > binaries, of course. > > You seem to have missed /rescue. Now think about that long > and hard, these tools classified as so important that they > are part of /res

Re: Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Ed Maste
On Thu, 25 Jan 2024 at 10:50, Mina Galić wrote: > > i was looking at cd(4) today, and to my surprise, it was full of disklabel > references. Oh, indeed - as with the old references in ccd(4) that should go. The last reference to `struct disklabel` in the CAM SCSI cd driver was removed over two d

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Rodney W. Grimes
> On Wed, 24 Jan 2024 at 12:30, Warner Losh wrote: > > > > Those are the only users in the tree, but not for long :) > > I have some reviews open to remove some old fdisk / diskabel / > bsdlabel invocations from the tree. > > With those applied, for fdisk I see the following references > (exclud

Re: Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Mina Galić
> > Those are the only users in the tree, but not for long :) > > I have some reviews open to remove some old fdisk / diskabel / > bsdlabel invocations from the tree. > > With those applied, for fdisk I see the following references > (excluding sbin/fdisk/* and comments, old examples, et

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Ed Maste
On Wed, 24 Jan 2024 at 12:30, Warner Losh wrote: > > Those are the only users in the tree, but not for long :) I have some reviews open to remove some old fdisk / diskabel / bsdlabel invocations from the tree. With those applied, for fdisk I see the following references (excluding sbin/fdisk/* a

Re: loading vmm.ko crashes main-n267684-e4b646ce1610

2024-01-25 Thread void
On Thu, Jan 25, 2024 at 03:34:54PM +0800, Zhenlei Huang wrote: You may want to configure the dump device before get the coredump. See https://docs.freebsd.org/en/books/developers-handbook/kerneldebug/#kerneldebug-obtain

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Cy Schubert
In message <84c6f3b1-58b3-44f8-aeaf-35f78e059...@quip.cz>, Miroslav Lachman wri tes: > On 25/01/2024 06:50, Cy Schubert wrote: > > In message c > > > >> > >> What can they do that gpart can't do? > > > > This was quite a while ago, booted off my recovery USB attempting to repair > > some self ca

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Cy Schubert
In message <2369865.bDOn7JOVgO@ravel>, Olivier Certner writes: > --nextPart5823302.8T7jmnknE8 > Content-Transfer-Encoding: 7Bit > Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" > From: Olivier Certner > To: Cy Schubert > Subject: Re: Removing fdisk and bsdlabel (legacy partitio

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Rolf M. Dietze
Quoting Cy Schubert : In message , Warner Losh writes: --b0adc9060fbe7411 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2024, 10:07=E2=80=AFPM Cy Schubert wrote: > In message <202401242347.40onlwkz099...@gndrsh.dnsmgr.net

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Miroslav Lachman
On 25/01/2024 06:50, Cy Schubert wrote: In message What can they do that gpart can't do? This was quite a while ago, booted off my recovery USB attempting to repair some self caused damage. The ability to edit (vi) a file with starting addresses and lengths, visually using bsdlabel, was su

Re: Removing fdisk and bsdlabel (legacy partition tools)

2024-01-25 Thread Olivier Certner
Hi, > A visual view of columns of a bsdlabel, editing a label using vi, checking > and double checking numbers before committing them is handy.The visual > format and the ability to adjust the numbers in an editor before committing > them is handy. You can't do this with gpart, as it's transact