[OpenAFS-devel] Patches for Openafs compression support
Sven Oehme
oehmes@de.ibm.com
Wed, 22 Dec 2004 15:35:06 +0100
--=_mixed 005006DAC1256F72_=
Content-Type: multipart/alternative; boundary="=_alternative 005006DAC1256F72_="
--=_alternative 005006DAC1256F72_=
Content-Type: text/plain; charset="US-ASCII"
Hi,
we have started a new project to enhance the data transfer (first on
volume level) to slow link connected sites.
we implemented the gzip algorithm and will add bzip2 compression later.
i have attached two patches for Openafs 1.2.13 and 1.3.77 to add gzip
compression to vos dump , release and restore
Important : there are no changes for WinNT so far, it will be added later
there are no changes to libadmin (AFS API), but we will add this later
any comments on that ?
Sven
--=_alternative 005006DAC1256F72_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="Courier New">Hi, </font>
<br>
<br><font size=2 face="Courier New">we have started a new project to enhance
the data transfer (first on volume level) to slow link connected sites.</font>
<br><font size=2 face="Courier New">we implemented the gzip algorithm and
will add bzip2 compression later. </font>
<br>
<br><font size=2 face="Courier New">i have attached two patches for Openafs
1.2.13 and 1.3.77 to add gzip compression to vos dump , release and restore
</font>
<br><font size=2 face="Courier New"><br>
Important : there are no changes for WinNT so far, it will be added later
<br>
<br>
there are no changes to libadmin (AFS API), but we will add this later
<br>
</font>
<br><font size=2 face="Courier New">any comments on that ?</font>
<br><font size=2><tt><br>
</tt></font>
<br>
<br><font size=2 face="sans-serif">Sven</font>
<br>
--=_alternative 005006DAC1256F72_=--
--=_mixed 005006DAC1256F72_=
Content-Type: application/octet-stream; name="openafs-1.3.77z.patch"
Content-Disposition: attachment; filename="openafs-1.3.77z.patch"
Content-Transfer-Encoding: base64
ZGlmZiAtTmF1ciBvcGVuYWZzLTEuMy43Ny9zcmMvdHZvbHNlci9NYWtlZmlsZS5pbiBvcGVuYWZz
LTEuMy43N3ovc3JjL3R2b2xzZXIvTWFrZWZpbGUuaW4NCi0tLSBvcGVuYWZzLTEuMy43Ny9zcmMv
dHZvbHNlci9NYWtlZmlsZS5pbgkyMDAzLTExLTI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blJlYWQoc3RydWN0
IHJ4X2NhbGwgKmNhbGwsIGludCB1c2VfY29tcHJlc3Npb24sIGludCBsZXZlbCwgc3RydWN0IHpp
b3J4X2NhbGwgKnpjYWxsKTsNCitpbnQgemlvcnhSZWFkKHN0cnVjdCB6aW9yeF9jYWxsICp6Y2Fs
bCwgY2hhciAqYnVmLCBpbnQgbmJ5dGVzKTsNCitpbnQgemlvcnhFbmRSZWFkKHN0cnVjdCB6aW9y
eF9jYWxsICp6Y2FsbCk7DQorDQorI2VuZGlmIC8vIF9fWklPUlhfSF9fDQo=
--=_mixed 005006DAC1256F72_=
Content-Type: application/octet-stream; name="openafs-1.2.13z.patch"
Content-Disposition: attachment; filename="openafs-1.2.13z.patch"
Content-Transfer-Encoding: base64
ZGlmZiAtTmF1ciBvcGVuYWZzLTEuMi4xMy9zcmMvdm9sc2VyL2R1bXBzdHVmZi5jIG9wZW5hZnMt
MS4yLjEzei9zcmMvdm9sc2VyL2R1bXBzdHVmZi5jDQotLS0gb3BlbmFmcy0xLjIuMTMvc3JjL3Zv
bHNlci9kdW1wc3R1ZmYuYwkyMDAzLTA0LTA0IDEwOjI5OjQ3LjAwMDAwMDAwMCArMDIwMA0KKysr
IG9wZW5hZnMtMS4yLjEzei9zcmMvdm9sc2VyL2R1bXBzdHVmZi5jCTIwMDQtMTItMjIgMDA6MTk6
NDguMDAwMDAwMDAwICswMTAwDQpAQCAtNDMsOSArNDMsMTMgQEANCiAjaW5jbHVkZSA8YWZzL2Fj
bC5oPg0KICNpbmNsdWRlICJ2b2xzZXIuaCINCiAjaW5jbHVkZSAidm9saW50LmgiDQorI2luY2x1
ZGUgInppb3J4LmgiDQogDQogZXh0ZXJuIGludCBEb0xvZ2dpbmc7DQogDQorI2RlZmluZSBERUZf
VE9fV1JJVEUgMQ0KKyNkZWZpbmUgREVGX1RPX1JFQUQgMA0KKw0KIC8qIFRoaXMgaW9kIHN0dWZm
IGlzIGEgc2lsbHkgbGl0dGxlIHBhY2thZ2UgdG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