diff options
author | bz <bz@FreeBSD.org> | 2009-11-29 17:53:57 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-11-29 17:53:57 +0000 |
commit | d4d8859e1ebaf0a42c1560ac30d2a8001f069f3b (patch) | |
tree | e35d95ecb8619dba02f6979ffdfebd85ffbbfba1 /sbin/dumpfs | |
parent | a8256824b80cce72ba41b83c19f3368286c52297 (diff) | |
download | FreeBSD-src-d4d8859e1ebaf0a42c1560ac30d2a8001f069f3b.zip FreeBSD-src-d4d8859e1ebaf0a42c1560ac30d2a8001f069f3b.tar.gz |
In case the compression result is the same size as the orignal version,
the compression was useless as well. Make sure to not update the data
and return, else we would waste resources when decompressing.
This also avoids the copyback() changing data other consumers like
xform_ipcomp.c would have ignored because of no win and sent out without
noting that compression was used, resulting in invalid packets at the
receiver.
MFC after: 5 days
Diffstat (limited to 'sbin/dumpfs')
0 files changed, 0 insertions, 0 deletions