gmzang / maczfs

Automatically exported from code.google.com/p/maczfs
Other
0 stars 0 forks source link

GZip compression not supported #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The gzip compression isn't supported. If you look at the zfs_main command, the 
option for 
enabling gzip compression is missing.

Further, the body of the gzip_compress function has been arbitrarily commented 
out (it's hard-
coded to return -1). 

http://github.com/alblue/mac-zfs/blob/master/usr/src/uts/common/fs/zfs/gzip.c

size_t
gzip_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
{
#ifdef __APPLE__
    return(-1);
#else
...

Would be good to find out why this is the case, and see if we can fix it at all 
so that we can 
enable GZip compression for those that want/need it.

Original issue reported on code.google.com by alex.ble...@gmail.com on 20 Feb 2010 at 1:04

GoogleCodeExporter commented 8 years ago
Fixed in 
http://github.com/alblue/mac-zfs/commit/ae9321a16f43fcb4d8bb3d592b3f3c7dd6ef215a

Original comment by alex.ble...@gmail.com on 18 Jul 2010 at 9:06