NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/59956: gpt(8): show human-readable units



The following reply was made to PR bin/59956; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kre%netbsd.org@localhost, campbell+netbsd%mumble.net@localhost
Subject: Re: bin/59956: gpt(8): show human-readable units
Date: Wed, 4 Feb 2026 16:26:23 +0100

 Please do not change output format w/o another switch (or add a switch
 to keep the old output format).
 
 Or probably even better: add a switch to get easily readable output
 with a new switch and I'll adapt sysinst to use the new switch and
 format.
 
 Sysinst parses the output of:
 
 gpt.c:  if (collect(T_OUTPUT, &textbuf, "gpt -r show -a %s 2>/dev/null", dev)
 
 and
 
 gpt.c:      "gpt -r show -b %" PRIu64 " %s 2>/dev/null", start, disk) < 1)
 
 
 All other gpt(8) invocations only care about exit status (and the output
 is ignored/discarded).
 
 
 Martin
 


Home | Main Index | Thread Index | Old Index