From owner-freebsd-sparc64@FreeBSD.ORG Tue Jun 1 13:53:01 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CFFD16A4D0 for ; Tue, 1 Jun 2004 13:53:01 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C7C843D55 for ; Tue, 1 Jun 2004 13:53:00 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA04570 for sparc64@freebsd.org; Tue, 1 Jun 2004 22:52:59 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.10/8.12.10) with ESMTP id i51KqVfF074166 for ; Tue, 1 Jun 2004 22:52:31 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.10/8.12.10/Submit) id i51KqV2Y074165 for sparc64@freebsd.org; Tue, 1 Jun 2004 22:52:31 +0200 (MET DST) (envelope-from j) Date: Tue, 1 Jun 2004 22:52:31 +0200 From: Joerg Wunsch To: sparc64@freebsd.org Message-ID: <20040601225231.A74149@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GnuPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 X-Spam-Status: No, hits=-6.5 required=7.5 tests=FWD_MSG,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Subject: Fwd: joerg@FreeBSD.org: cvs commit: src/sbin/sunlabel sunlabel.8 sunlabel.c X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joerg Wunsch List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 20:53:01 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Just FYI. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) --PEIAKu/WMn1b1Hv9 Content-Type: message/rfc822 Content-Disposition: inline Return-Path: Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.10/8.12.10) with ESMTP id i51Ke4fF073702 for ; Tue, 1 Jun 2004 22:40:04 +0200 (MET DST) (envelope-from owner-src-committers@FreeBSD.org) Received: (from uucp@localhost)i51Ke48i073698 for freebsd-org@uriah.heep.sax.de; Tue, 1 Jun 2004 22:40:04 +0200 (MET DST) (envelope-from owner-src-committers@FreeBSD.org) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by sax.sax.de (8.9.3/8.9.3) with ESMTP id WAA03432 for ; Tue, 1 Jun 2004 22:32:49 +0200 (CEST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 037EE562EE; Tue, 1 Jun 2004 13:32:48 -0700 (PDT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 538) id DEF1416A4D1; Tue, 1 Jun 2004 13:32:47 -0700 (PDT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0383616A4CE; Tue, 1 Jun 2004 13:32:37 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE65F43D49; Tue, 1 Jun 2004 13:32:36 -0700 (PDT) (envelope-from joerg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i51KWaed091997; Tue, 1 Jun 2004 13:32:36 -0700 (PDT) (envelope-from joerg@repoman.freebsd.org) Received: (from joerg@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i51KWacs091996; Tue, 1 Jun 2004 13:32:36 -0700 (PDT) (envelope-from joerg) Message-Id: <200406012032.i51KWacs091996@repoman.freebsd.org> From: Joerg Wunsch Date: Tue, 1 Jun 2004 13:32:36 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/sunlabel sunlabel.8 sunlabel.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Status: No, hits=0.0 required=7.5 tests=X_LOOP version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) joerg 2004/06/01 13:32:36 PDT FreeBSD src repository Modified files: sbin/sunlabel sunlabel.8 sunlabel.c Log: Major overhaul of sunlabel(8). . Implement option -c, all partition sizes will be calculated in cylinders as opposed to sectors. Since the Sun label is inherently cylinder-based, this makes the job a little easier. . Implement option -h, print the label in `human readable' size/offset format. . Implement SVR4-compatible VTOC-style elements. They are fully optional, defaulting to the current behaviour where no VTOC-style table will be written to disk. However, if desired, the full functionality of the partitioning menu of Solaris' format(1m) is now offered (and even more). . When editing the label, do not loop around edit_label() where a new template file is generated for each turn, this used to be annoying in that any possible syntax error caused a complaint, but then the template was created anew, so the user had to perform all their editing again. Rather loop inside edit_label(), similar to bsdlabel(8), so in case of errors, the user will be presented their previous template file again. . If VTOC-style elements are present, the overlap checks are made less stringent. Overlaps will still be warned about, but overlaps of `unmountable' partitions against other ones are no longer fatal. That way, e. g. VxVM encapsulated disk labels can be fully edited in FreeBSD (but not in Solaris ;-). . In print_label(), generate the editing hints only if the -e flag is in effect. Additionally, print a hint about the total number of sectors in the (hardware) medium. . When editing a label, allow for changing the geometry emulation (and textual name) by modifying the "text:" line on top. That way, a more effective emulation can be chosen. . When editing/reading a label, additionally allow for the suffixes `s' (512-byte sectors), and `c' (cylinders) in the partition size field. . Finally, turn the stub man page into something that really explains the entire thing. Revision Changes Path 1.3 +352 -6 src/sbin/sunlabel/sunlabel.8 1.9 +405 -66 src/sbin/sunlabel/sunlabel.c --PEIAKu/WMn1b1Hv9--