Subject: Re: bin/37414: fdisk suggests input formats it doesn't accept
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, rillig@NetBSD.org>
From: dieter roelants <dieter.NetBSD@pandora.be>
List: netbsd-bugs
Date: 12/02/2007 16:30:02
The following reply was made to PR bin/37414; it has been noted by GNATS.
From: dieter roelants <dieter.NetBSD@pandora.be>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/37414: fdisk suggests input formats it doesn't accept
Date: Sun, 2 Dec 2007 17:26:35 +0100
This is a multi-part message in MIME format.
--Multipart=_Sun__2_Dec_2007_17_26_35_+0100_EzLel_04swsA1qx6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
What about attached patch? It makes fdisk accept the full units as well
as the first letter as before, and everything in between (c, cy, cyl).
dieter
--Multipart=_Sun__2_Dec_2007_17_26_35_+0100_EzLel_04swsA1qx6
Content-Type: text/plain;
name="patch2"
Content-Disposition: attachment;
filename="patch2"
Content-Transfer-Encoding: base64
SW5kZXg6IGZkaXNrLmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zzcm9vdC9zcmMvc2Jpbi9m
ZGlzay9mZGlzay5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMTANCmRpZmYgLXUgLXIxLjEx
MCBmZGlzay5jDQotLS0gZmRpc2suYwkyOSBOb3YgMjAwNyAyMzoxOToyNSAtMDAwMAkxLjExMA0K
KysrIGZkaXNrLmMJMiBEZWMgMjAwNyAxNjowMzo1MiAtMDAwMA0KQEAgLTU2LDYgKzU2LDcgQEAN
CiAjaW5jbHVkZSA8c3RkaW8uaD4NCiAjaW5jbHVkZSA8c3RkbGliLmg+DQogI2luY2x1ZGUgPHN0
cmluZy5oPg0KKyNpbmNsdWRlIDxzdHJpbmdzLmg+DQogI2luY2x1ZGUgPHVuaXN0ZC5oPg0KICNp
bmNsdWR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