[PATCH] plan9 partition support

©[@ÄØÿ¿8þÿ¿A Guy Called Tyketto (imel96@trustix.co.id)
Sun, 7 Jan 2001 19:44:38 +0700 (JAVT)


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.

---1463811051-2042799760-978869960=:26662
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.30.0101071943312.27014@asmuni.trustix.co.id>

hi all,

this one patch i believe is harmless as it only
reads partition table, but who knows. the diff
is against 2.4.0.

the patch locates partitions inside the plan9
partition table.

as you may know, a plan9 partition table has three
type of partitions inside (9fat, fs, and swap).
9fat is fat16.

plan9 puts its boot loader in the 9fat partition.
with this patch i can locate the 9fat partition so
lilo could boot plan9.

with msdos file system, linux will mount 9fat partition,
so you could use the 9fat partition from linux and plan9.

i can't find anyone with plan9 to test, but it works for
me, so... i'm not on the list anymore, so please cc.

imel

---1463811051-2042799760-978869960=:26662
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="linux-plan9.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0101071944380.27014@asmuni.trustix.co.id>
Content-Description:
Content-Disposition: attachment; filename="linux-plan9.diff"

ZGlmZiAtdXIgbGludXh+L0RvY3VtZW50YXRpb24vQ29uZmlndXJlLmhlbHAg
bGludXgvRG9jdW1lbnRhdGlvbi9Db25maWd1cmUuaGVscA0KLS0tIGxpbnV4
fi9Eb2N1bWVudGF0aW9uL0NvbmZpZ3VyZS5oZWxwCUZyaSBKYW4gIDUgMTY6
Mjc6NDMgMjAwMQ0KKysrIGxpbnV4L0RvY3VtZW50YXRpb24vQ29uZmlndXJl
LmhlbHAJU3VuIEphbiAgNyAxODoyMjoyNSAyMDAxDQpAQCAtMTE0NzAsNiAr
MTE0NzAsMTcgQEANCiAgIFNheSBZIGhlcmUgaWYgeW91IHdvdWxkIGxpa2Ug
dG8gdXNlIGhhcmQgZGlza3MgdW5kZ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ODQorDQorI2RlZmluZSBQ
TEFOOV9QQVJUSVRJT04JMHgzOQ0KKw0KK3N0cnVjdAlwbGFuOV9wYXJ0aXRp
b24gewkvKiB0aGUgcGFydGl0aW9uIHRhYmxlICovDQorCV9fdTMyCXBfc2l6
ZTsJCS8qIG51bWJlciBvZiBzZWN0b3JzIGluIHBhcnRpdGlvbiAqLw0KKwlf
X3UzMglwX29mZnNldDsJLyogc3RhcnRpbmcgc2VjdG9yICovDQorfTsNCisN
CisjZW5kaWYNCisNCiAjaWZkZWYgQ09ORklHX0JTRF9ESVNLTEFCRUwNCiAv
Kg0KICAqIEJTRCBkaXNrbGFiZWwgc3VwcG9ydCBieSBZb3NzaSBHb3R0bGll
YiA8eW9nb0BtYXRoLnRhdS5hYy5pbD4NCg==
---1463811051-2042799760-978869960=:26662--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/