Date: Tue, 1 Jun 2004 22:52:31 +0200 From: Joerg Wunsch <j@ida.interface-business.de> To: sparc64@freebsd.org Subject: Fwd: joerg@FreeBSD.org: cvs commit: src/sbin/sunlabel sunlabel.8 sunlabel.c Message-ID: <20040601225231.A74149@uriah.heep.sax.de>
next in thread | raw e-mail | index | archive | help
--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: <owner-src-committers@FreeBSD.org> 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 <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 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 <freebsd-org@uriah.heep.sax.de>; 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 <joerg@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040601225231.A74149>