Date: Fri, 15 Nov 2002 13:39:46 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: FreeBSD current users <current@freebsd.org> Cc: re@freebsd.org Subject: First cut at sysinstall 64bit changes Message-ID: <Pine.BSF.4.21.0211151327260.46162-200000@InterJet.elischer.org>
next in thread | raw e-mail | index | archive | help
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-700495603-1037396386=:46162 Content-Type: TEXT/PLAIN; charset=US-ASCII Here is a set of patches that alowed me to at least make a 1.5TB partition on my raid set. I am willing to bet that it breaks other platforms as I haven't even compiled them but it's mainly mechanical editing. is there a "Mr sysinstall" these days? The set I posted for 4.7++ is different from this as I think that the two are diverging with the addition of ufs2 to -current. This is not complete but it did allow me to partition the array with one big partition which is what I wanted (for testing UFS2). Julian --0-700495603-1037396386=:46162 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="64bit.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0211151339450.46162@InterJet.elischer.org> Content-Description: Content-Disposition: attachment; filename="64bit.diff" SW5kZXg6IGxpYi9saWJkaXNrL2NodW5rLmMNCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT0NClJDUyBmaWxlOiAvdXNyL2N2cy9zcmMvbGliL2xpYmRpc2svY2h1 bmsuYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNDQNCmRpZmYgLXUgLXIx LjQ0IGNodW5rLmMNCi0tLSBsaWIvbGliZGlzay9jaHVuay5jCTEzIE5vdiAy MDAyIDA1OjMxOjMyIC0wMDAwCTEuNDQNCisrKyBsaWIvbGliZGlzay9jaHVu ay5jCTE1IE5vdiAyMDAyIDE4OjU2OjUwIC0wMDAwDQpAQCAtNDQsNyArNDQs NyBAQA0KIH0NCiANCiBzdGF0aWMgc3RydWN0IGNodW5rICoNCi1GaW5kX01v dGhlcl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Swgc2l6ZW9mIG5hbWUsICIlcy0lZCIsIGMxLT5uYW1lLCBlbnRy aWVzKTsNCiAJCWlmICgoY3AgPSB2YXJpYWJsZV9nZXQobmFtZSkpID09IE5V TEwpDQogCQkgICAgYnJlYWs7DQotCQlpZiAoc3NjYW5mKGNwLCAiJXMgJWQg JXMgJWQiLCB0eXAsICZzeiwgbXBvaW50LCAmc29mdCkgPCAzKSB7DQorCQlp ZiAoc3NjYW5mKGNwLCAiJXMgJWxsdSAlcyAlZCIsIHR5cCwgJnN6LCBtcG9p bnQsICZzb2Z0KSA8IDMpIHsNCiAJCSAgICBtc2dDb25maXJtKCJGb3Igc2xp Y2UgZW50cnkgJXMsIGdvdCBhbiBpbnZhbGlkIGRldGFpbCBlbnRyeSBvZjog JXMiLCAgYzEtPm5hbWUsIGNwKTsNCiAJCSAgICBzdGF0dXMgPSBESVRFTV9G QUlMVVJFOw0KIAkJICAgIGJyZWFrOw0K --0-700495603-1037396386=:46162-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211151327260.46162-200000>