From owner-freebsd-hackers Wed Sep 18 06:01:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA27504 for hackers-outgoing; Wed, 18 Sep 1996 06:01:38 -0700 (PDT) Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA27476 for ; Wed, 18 Sep 1996 06:01:34 -0700 (PDT) Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0v3M1k-0004skC; Wed, 18 Sep 96 08:46 EDT Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA02089; Wed, 18 Sep 96 08:45:11 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id IAA13016; Wed, 18 Sep 1996 08:39:13 -0400 From: rhh@ct.picker.com (Randall Hopper) Message-Id: <199609181239.IAA13016@elmer.ct.picker.com> Subject: Re: fdisk changes, anyone? To: darrylo@hpnmhjw.sr.hp.com (Darryl Okahata) Date: Wed, 18 Sep 1996 08:39:13 -0400 (EDT) Cc: hackers@freebsd.org In-Reply-To: <199609160712.AA113897963@hpnmhjw.sr.hp.com> from "Darryl Okahata" at Sep 16, 96 00:12:43 am Reply-To: rhh@ct.picker.com Organization: Picker International, CT Division X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk | I've just mangled fdisk such that partitioning information can now |be specified via an optional config file. I've been needing a way to ... |Would anyone be interested in the changes (including man page updates)? |Should I submit an enhancement request (w/patches), or should I consign |these changes to the mists of time? ;-) | I'd be very interested in this. Sure would beat the fdisk << ! ... ! references I've got in my scripts -- much less dangerous. I have to manually recheck these scripts when I upgrade my system. To Jordan's point about specifying the partition info using command-line options (to avoid having to use a temp file with this method), a compromise solution might be to be able to specify a "-" on the command line for the config file path to allow the config file to be read from stdin. What you have would definitely be useful. Please submit. One nice future that occurs to me might be able to specify the partition info for multiple disk configurations in a single config file, each one identified by a name, analogous to the way disktab is used (e.g. fbsd-ufs-zip-disk:, fbsd-ufs-1.44flop:, etc.). I think it'd be a plus for usability to eventually deliver an /etc file for this updated fdisk with the more commonly used partitioning schemes for common media (removable in particular) in-place, so the user just needs to do: fdisk -c fbsd-ufs-zip-disk This'd make my fdisk/disklabel/newfs script for creating UFS ZIP disks very small and simple. Randall Hopper rhh@ct.picker.com