From owner-freebsd-hackers Sun May 7 00:34:17 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA09123 for hackers-outgoing; Sun, 7 May 1995 00:34:17 -0700 Received: from physics.su.oz.au (dawes@physics.su.OZ.AU [129.78.129.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id AAA09117 for ; Sun, 7 May 1995 00:34:15 -0700 Received: by physics.su.oz.au id AA08842 (5.67b/IDA-1.4.4 for hackers@freebsd.org); Sun, 7 May 1995 17:34:04 +1000 From: David Dawes Message-Id: <199505070734.AA08842@physics.su.oz.au> Subject: Number of partitions reports/required by disklabel incorrect? To: hackers@FreeBSD.org Date: Sun, 7 May 1995 17:34:03 +1000 (EST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 977 Sender: hackers-owner@FreeBSD.org Precedence: bulk I just noticed that the output of disklabel(8) on SNAP-950412 reports the number of partitions to be one more than it displays. The main reason I noticed it was that when editing the label, and setting the number to the actual number: 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 164538 198 4.2BSD 512 4096 16 # (Cyl. 1 - 831) c: 164538 198 unused 0 0 # (Cyl. 1 - 831) d: 164736 0 unused 0 0 # (Cyl. 0 - 831) disklabel would say: Warning, unused partition d: size 164736 offset 0 and sure enough running disklabel again reports: 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 164538 198 4.2BSD 512 4096 16 # (Cyl. 1 - 831) c: 164538 198 unused 0 0 # (Cyl. 1 - 831) If I tell it I've got 4 partitions, then the 3 get written to the label correctly. David