--17438721-1948232257-1010532021=:16310
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.33.0201081653582.16310@earth.ayrnetworks.com>
This is a patch that applies cleanly to 2.4.17 and 2.5.1. It only
touches cramfs stuff. It fixes cramfs kernel support and the mkcramfs and
cramfsck programs to work with big-endian machines, by swabbing where
necessary. Thus, big endian and little endian machines create and read
little endian cramfs data (what the documentation suggests should happen).
We've been using these changes on our big endian machines for a while, and
have used Daniel Quinlan's stress_cramfs script to test the changes on
i386 as well. It would be nice for us bigendianites to have this in...
Thanks,
Bradley Bozarth
--17438721-1948232257-1010532021=:16310
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="cramfs_be.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0201081520210.16310@earth.ayrnetworks.com>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="cramfs_be.diff"
ZGlmZiAtdXJOIC1YIGRvbnRkaWZmIGxpbnV4LTIuNC4xNy9mcy9jcmFtZnMv
aW5vZGUuYyBsaW51eC1jdXJyL2ZzL2NyYW1mcy9pbm9kZS5jDQotLS0gbGlu
dXgtMi40LjE3L2ZzL2NyYW1mcy9pbm9kZS5jCUZyaSBEZWMgMjEgMDk6NDE6
NTUgMjAwMQ0KKysrIGxpbnV4LWN1cnIvZnMvY3JhbWZzL2lub2RlLmMJV2Vk
IEphbiAgMiAxNzowNzoyOSAyMDAyDQpAQCAtMjIsNiArMjIsNyBAQA0KICNp
bmNsdWRlIDxhc20vc2VtYXBob3JlLmg+DQogDQogI2luY2x1ZGUgPGFzbS91
YWNjZXNzLmg+DQorI2luY2x1ZGUgPGFzbS9ieXRlb3JkZXIuaD4NCiANCiAj
ZGVmaW5lIENSQU1GU19TQl9NQUdJQyB1LmNyYW1mc19zYi5tYWdpYw0KICNk
ZWZpbmUgQ1JBTUZTX1NCX1NJWkUgdS5jcmFtZnNfc2Iuc2l6ZQ0KQEAgLTM5
LDcgKzQwLDc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IAkJZXhp
dCgxNik7DQogCX0NCiAJZmQgPSBvcGVuKG91dGZpbGUsIE9fV1JPTkxZIHwg
T19DUkVBVCB8IE9fVFJVTkMsIDA2NjYpOw0KKwlpZiAoZmQgPCAwKSB7DQor
CQlwZXJyb3Iob3V0ZmlsZSk7DQorCQlleGl0KDgpOw0KKwl9DQogDQogCXJv
b3RfZW50cnkgPSBjYWxsb2MoMSwgc2l6ZW9mKHN0cnVjdCBlbnRyeSkpOw0K
IAlpZiAoIXJvb3RfZW50cnkpIHsNCkBAIC03MjUsNyArNzMxLDggQEANCiAN
CiAJLyogUHV0IHRoZSBjaGVja3N1bSBpbi4gKi8NCiAJY3JjID0gY3JjMzIo
Y3JjLCAocm9tX2ltYWdlK29wdF9wYWQpLCAob2Zmc2V0LW9wdF9wYWQpKTsN
Ci0JKChzdHJ1Y3QgY3JhbWZzX3N1cGVyICopIChyb21faW1hZ2Urb3B0X3Bh
ZCkpLT5mc2lkLmNyYyA9IGNyYzsNCisJKChzdHJ1Y3QgY3JhbWZzX3N1cGVy
ICopIChyb21faW1hZ2Urb3B0X3BhZCkpLT5mc2lkLmNyYyA9IA0KKwkJbGUz
Ml90b19jcHUoY3JjKTsNCiAJcHJpbnRmKCJDUkM6ICV4XG4iLCBjcmMpOw0K
IA0KIAkvKiBDaGVjayB0byBtYWtlIHN1cmUgd2UgYWxsb2NhdGVkIGVub3Vn
aCBzcGFjZS4gKi8NCg==
--17438721-1948232257-1010532021=:16310--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/