From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 22 Aug 2003 21:22:00 +0400 From: Sergey Vlasov To: ALT Developers List Message-Id: <20030822212200.215ac7c2.vsu@altlinux.ru> X-Mailer: Sylpheed version 0.9.4cvs2 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.Zqwu6g'w2vOd7=" Subject: [devel] GRUB partition-map patch (md raid1 support) X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 17:22:12 -0000 Archived-At: List-Archive: List-Post: --=.Zqwu6g'w2vOd7= Content-Type: multipart/mixed; boundary="Multipart_Fri__22_Aug_2003_21:22:00_+0400_08813e80" --Multipart_Fri__22_Aug_2003_21:22:00_+0400_08813e80 Content-Type: text/plain; charset=KOI8-R Content-Disposition: inline Content-Transfer-Encoding: base64 SGVsbG8hDQoNCvEg1NXUINPMxcfLwSDQz8jBy8HMIEdSVUIgzsEg0NLFxM3F1CDV09TBzs/Xy8kg zsEgUkFJRDEgLSDX0s/ExSDC2Q0K0sHCz9TBxdQuIPDB1N4gzsEgwsHaxSBncnViLTAuOTMtYWx0 MSAo0M/TzMUg19PFyCDQ0s/eycggLSDUwc0NCtDPzNXeyczB09gg2sHXydPJzc/T1Nggz9Qg0NLF xNnE1d3JyDsgzsEg3snT1NnKIM7FIMzR1sXUKS4NCg0K88TFzMHOzyDTzMXE1cDdyc0gz8LSwdrP zTog1yAvYm9vdC9ncnViL2RldmljZS5tYXAgzc/Wzs8g0MnTwdTYINrB0MnTyQ0KzsUg1M/M2MvP IMTM0SDEydPLz9csIM7PIMkgxMzRIM/UxMXM2M7ZyCDSwdrExczP1zoNCg0KKGZkMCkJL2Rldi9m ZDANCihoZDApC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T0SDXIG1lbnUubHN0KS4g6yDT3sHT1NjALCDXINPM1d7BxQ0KR1JV QiDc1M8gzsUg083F0tTFzNjOzyAtINDSySDOxc/CyM/Eyc3P09TJINfToyDSwdfOzyDJ2iDFx88g y8/Nwc7Ezs/KDQrT1NLPy8kgzc/Wzs8g2sHH0tXaydTYIN7UzyDVx8/Ezs8uDQoNCvPExczBzs8g 08XHz8TO0Swg1MHLIN7UzyDX0M/MzsUg18XSz9HUzs8gzsHMyd7JxSDL1d7JIMLBx8/XIDotKQ0K DQoNClBTOiBMSUxPINrBIM7FxMXMwCDOwcTPxcwgxM8gzsXXz9rNz9bOz9PUySA6LSkNCiAgICAo xMEgyyDUz83VINbFINUgzsHTIM/OIMXdoyDOxSDQ0s/QwdTexc4gxMzRIEVWTVMgMiwg1MHLIN7U zyDX06MNCiAgICDSwdfOzyDQ0snbzM/T2CDNxc7R1Ngg2sHH0tXa3snLKQ0KDQotLSANClNlcmdl eSBWbGFzb3YNCg== --Multipart_Fri__22_Aug_2003_21:22:00_+0400_08813e80 Content-Type: text/x-patch; name="grub-0.93-alt-partition-map.patch" Content-Disposition: attachment; filename="grub-0.93-alt-partition-map.patch" Content-Transfer-Encoding: base64 LS0tIGdydWItMC45My9zdGFnZTIvZGlza19pby5jLmFsdC1wYXJ0aXRpb24tbWFwCTIwMDMtMDgt MjIgMTk6NDg6NDYgKzA0MDAKKysrIGdydWItMC45My9zdGFnZTIvZGlza19pby5jCTIwMDMtMDgt MjIgMTk6NDg6NDYgKzA0MDAKQEAgLTM0NCw3ICszNDQsOCBAQAogCSBlbWJlZCBhIFN0YWdlIDEu NSBpbnRvIGEgcGFydGl0aW9uIGluc3RlYWQgb2YgYSBNQlIsIHVzZSBzeXN0ZW0KIAkgY2FsbHMg ZGlyZWN0bHkgaW5zdGVhZCBvZiBiaW9zZGlzaywgYmVjYXVzZSBvZiB0aGUgYnVnIGluCiAJIExp bnV4LiAqc2lnaCogICovCi0gICAgICByZXR1cm4gd3JpdGVfd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GRyaXZlOwogICAgICAgaW50IGlzX2Zsb3BweSA9IDA7Cisj aWZkZWYgX19saW51eF9fCisgICAgICBpbnQgcGFydGl0aW9uID0gLTE7CisjZW5kaWYgLyogX19s aW51eF9fICovCiAgICAgICAKICAgICAgIC8qIEluY3JlYXNlIHRoZSBudW1iZXIgb2YgbGluZXMu ICAqLwogICAgICAgbGluZV9udW1iZXIrKzsKQEAgLTQzMSw2ICs0NTIsMjcgQEAKICAgICAgIAog ICAgICAgaWYgKCEgaXNfZmxvcHB5KQogCWRyaXZlICs9IDB4ODA7CisKKyNpZmRlZiBfX2xpbnV4 X18KKyAgICAgIC8qIENoZWNrIGZvciBhIHBvc3NpYmxlIHBhcnRpdGlvbiBtYXAgZW50cnkuICAq LworICAgICAgaWYgKCpwdHIgPT0gJywnKQorCXsKKwkgIGlmIChpc19mbG9wcHkpCisJICAgIHsK KwkgICAgICBzaG93X2Vycm9yIChsaW5lX251bWJlciwKKwkJCSAgIlBhcnRpdGlvbnMgb24gZmxv cHB5IGRyaXZlcyBhcmUgbm90IGFsbG93ZWQiKTsKKwkgICAgICByZXR1cm4gMDsKKwkgICAgfQor CisJICBwdHIrKzsKKwkgIHBhcnRpdGlvbiA9IHN0cnRvdWwgKHB0ciwgJnB0ciwgMTApOworCSAg aWYgKHBhcnRpdGlvbiA8IDAgfHwgcGFydGl0aW9uID4gMjU1KSAvKiBYWFg6IG1heCB2YWx1ZT8g Ki8KKwkgICAgeworCSAgICAgIHNob3dfZXJyb3IgKGxpbmVfbnVtYmVyLCAiQmFkIHBhcnRpdGlv biBudW1iZXIiKTsKKwkgICAgICByZXR1cm4gMDsKKwkgICAgfQorCX0KKyNlbmRpZiAvKiBfX2xp bnV4X18gKi8KICAgICAgIAogICAgICAgaWYgKCpwdHIgIT0gJyknKQogCXsKQEAgLTQ1NSw2ICs0 OTcsMzUgQEAKIAllcHRyKys7CiAgICAgICAqZXB0ciA9IDA7CiAKKyNpZmRlZiBfX2xpbnV4X18K KyAgICAgI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zdG9yZV9kZXZpY2VfbWFwIChkZXZpY2VfbWFwLCBwYXJ0aXRpb25fbWFwKTsKICAg ZGV2aWNlX21hcCA9IDA7CisgIHBhcnRpdGlvbl9tYXAgPSAwOwogICBmcmVlIChkaXNrcyk7CiAg IGRpc2tzID0gMDsKICAgZnJlZSAoc2NyYXRjaCk7Cg== --Multipart_Fri__22_Aug_2003_21:22:00_+0400_08813e80-- --=.Zqwu6g'w2vOd7= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/RlE7W82GfkQfsqIRAoFGAJ97n9cT8QRSOkyG8S7uUJzWFYyTBgCdEFio gAXnH3k4neF69IYSrMv+wZo= =0cKb -----END PGP SIGNATURE----- --=.Zqwu6g'w2vOd7=--