From owner-freebsd-current Fri Nov 15 16: 0:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E61E737B401; Fri, 15 Nov 2002 16:00:12 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46CC943E3B; Fri, 15 Nov 2002 16:00:12 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.168.4]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021116000010.MKQE21905.sccrmhc02.attbi.com@InterJet.elischer.org>; Sat, 16 Nov 2002 00:00:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA47363; Fri, 15 Nov 2002 15:59:26 -0800 (PST) Date: Fri, 15 Nov 2002 15:59:25 -0800 (PST) From: Julian Elischer To: re@freebsd.org, FreeBSD current users Subject: Sign fixes for disklabel(8) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-169692073-1037404765=:46162" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-169692073-1037404765=:46162 Content-Type: TEXT/PLAIN; charset=US-ASCII Here are the diffs to allow disklabel to correctly create partitions > 1TB (up to 2TB is useful with UFS2) pending a different partitionning scheme. It also allows you to correctly make smaller partitions beyond 1TB which is nice if you don't want to waste 800GB on an array :-) permission to commit please? (pending comments by others) (also the sysinstall changes posted before) (also the bluetooth code) --0-169692073-1037404765=:46162 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="disklabel.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="disklabel.diff" SW5kZXg6IGRpc2tsYWJlbC5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS Q1MgZmlsZTogL3Vzci9jdnMvc3JjL3NiaW4vZGlza2xhYmVsL2Rpc2tsYWJl bC5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS42Mg0KZGlmZiAtdSAtcjEu NjIgZGlza2xhYmVsLmMNCi0tLSBkaXNrbGFiZWwuYwk4IE9jdCAyMDAyIDEy OjEzOjE5IC0wMDAwCTEuNjINCisrKyBkaXNrbGFiZWwuYwkxNSBOb3YgMjAw MiAyMzo1MzowNCAtMDAwMA0KQEAgLTk0Myw3ICs5NDMsOCBAQA0KIAljb25z dCBjaGFyICoqY3BwOw0KIAl1bnNpZ25lZCBpbnQgcGFydDsNCiAJY2hhciAq dHAsIGxpbmVbQlVGU0laXTsNCi0JaW50IHYsIGxpbmVubyA9IDAsIGVycm9y cyA9IDA7DQorCXVuc2lnbmVkIGludCB2Ow0KKwlpbnQgbGluZW5vID0gMCwg ZXJyb3JzID0gMDsNCiAJaW50IGk7DQogDQogCWxwLT5kX2Jic2l6ZSA9IEJC U0laRTsJCQkJLyogWFhYICovDQpAQCAtOTczLDcgKzk3NCw3IEBADQogCQkJ CX0NCiAJCQlpZiAoY3BwIDwgJmRrdHlwZW5hbWVzW0RLTUFYVFlQRVNdKQ0K IAkJCQljb250aW51ZTsNCi0JCQl2ID0gYXRvaSh0cCk7DQorCQkJdiA9IHN0 cnRvdWwodHAsIE5VTEwsIDApOw0KIAkJCWlmICgodW5zaWduZWQpdiA+PSBE S01BWFRZUEVTKQ0KIAkJCQlmcHJpbnRmKHN0ZGVyciwgImxpbmUgJWQ6JXMg JWRcbiIsIGxpbmVubywNCiAJCQkJICAgICJXYXJuaW5nLCB1bmtub3duIGRp c2sgdHlwZS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XJ0aXRpb24gZXh0 ZW5kcyBwYXN0IGVuZCBvZiB1bml0XG4iLA0KIAkJCSAgICBwYXJ0KTsNCg== --0-169692073-1037404765=:46162-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message