[PATCH] Big-endian reading/writing cramfs (vs 2.4.10)

Brad (prettygood@cs.stanford.edu)
Fri, 28 Sep 2001 14:58:13 -0700 (PDT)


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.

--17438721-1929461958-1001714293=:9055
Content-Type: TEXT/PLAIN; charset=US-ASCII

A few people have expressed interest in this, and I needed it as
well. Currently, cramfs images aren't shareable between different endian
architectures. The documentation states the meta-data should always be
stored little endian, as the cost of swabbing would be low, but the code
doesn't do it. We needed shareable images, so I modified inode.c,
cramfs_fs.h, and mkcramfs.h to enable a big-endian machine to swab meta
data when writing (mkcramfs.c) and reading (inode.c). This is done with
#defined macros (the 26 bit/6 bit bitfield is kind of ugly to translate),
so the code doesn't change for little-endian machines, only big-endian.
I tested reading le on be, reading a be-written le image on le, etc...

This is a patch against 2.4.10.

-Brad Bozarth

--17438721-1929461958-1001714293=:9055
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="unifiedcram.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0109281458130.9055@earth.ayrnetworks.com>
Content-Description:
Content-Disposition: attachment; filename="unifiedcram.diff"

LS0tIDIuNC4xMC9pbmNsdWRlL2xpbnV4L2NyYW1mc19mcy5oCVRodSBKdWwg
MTkgMTY6MTQ6NTMgMjAwMQ0KKysrIGN1cnJlbnQvaW5jbHVkZS9saW51eC9j
cmFtZnNfZnMuaAlUaHUgU2VwIDI3IDE3OjM2OjU3IDIwMDENCkBAIC05LDcg
KzksMTIgQEANCiANCiAjZW5kaWYNCiANCisjaWYgKGRlZmluZWQoQllURV9P
UkRFUikgJiYgQllURV9PUkRFUiA9PSBCSUdfRU5ESUFOKSB8fCBkZWZpbmVk
KF9fTUlQU0VCX18pDQorI2RlZmluZSBDUkFNRlNfTUFHSUMJCTB4NDUzZGNk
MjgJLyogZW5kaWFuIHJldmVyc2VkIG1hZ2ljICovDQorI2Vsc2UNCiAjZG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0KKwkJCWlub2RlLT5z
aXplID0gQ1JBTV9TV0FCXzI0KGVudHJ5LT5zaXplKTsNCiAJCQlpbm9kZS0+
b2Zmc2V0ID0gMDsNCiAJCQkvKiBOb24tZW1wdHkgZGlyZWN0b3JpZXMsIHJl
Z2ZpbGVzIGFuZCBzeW1saW5rcyB3aWxsDQogCQkJICAgd3JpdGUgb3ZlciBp
bm9kZS0+b2Zmc2V0IGxhdGVyLiAqLw0KQEAgLTM5NSw3ICszOTYsNyBAQA0K
IAkJCQkqKGJhc2UgKyBvZmZzZXQgKyBsZW4pID0gJ1wwJzsNCiAJCQkJbGVu
Kys7DQogCQkJfQ0KLQkJCWlub2RlLT5uYW1lbGVuID0gbGVuID4+IDI7DQor
CQkJU0VUX0NSQU1fTkFNRUxFTihpbm9kZSwgbGVuID4+IDIpOw0KIAkJCW9m
ZnNldCArPSBsZW47DQogDQogCQkJLyogVE9ETzogdGhpcyBtYXkgZ2V0IGl0
IHdyb25nIGZvciBjaGFycyA+PSAweDgwLg0KQEAgLTUwMyw3ICs1MDQsNyBA
QA0KIAkJCWV4aXQoOCk7DQogCQl9DQogDQotCQkqKHUzMiAqKSAoYmFzZSAr
IG9mZnNldCkgPSBjdXJyOw0KKwkJKih1MzIgKikgKGJhc2UgKyBvZmZzZXQp
ID0gQ1JBTV9TV0FCXzMyKGN1cnIpOw0KIAkJb2Zmc2V0ICs9IDQ7DQogCX0g
d2hpbGUgKHNpemUpOw0KIA0K
--17438721-1929461958-1001714293=:9055--
-
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/