diff options
author | Neil Perrin <Neil.Perrin@Sun.COM> | 2010-07-06 11:05:17 -0600 |
---|---|---|
committer | Neil Perrin <Neil.Perrin@Sun.COM> | 2010-07-06 11:05:17 -0600 |
commit | 91de656b0815c0aeab4e6fc638e9bb4577aa9513 (patch) | |
tree | 12eda0ab118dc5a2e1982a74c9fe2181ab14f1e9 /usr/src/uts/common/fs/zfs/lzjb.c | |
parent | 2b70f49a2b929bd5fe23f7a0db9be5dedce114a4 (diff) | |
download | illumos-joyent-91de656b0815c0aeab4e6fc638e9bb4577aa9513.tar.gz |
6834694 zfs renames can potentially be committed without the data
6906236 assertion failed in the file zfs_replay.c line 686
6965567 zil.c minor tidy up
6732237 lzjb_compress
Diffstat (limited to 'usr/src/uts/common/fs/zfs/lzjb.c')
-rw-r--r-- | usr/src/uts/common/fs/zfs/lzjb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/uts/common/fs/zfs/lzjb.c b/usr/src/uts/common/fs/zfs/lzjb.c index 10952f472b..ab3de51b72 100644 --- a/usr/src/uts/common/fs/zfs/lzjb.c +++ b/usr/src/uts/common/fs/zfs/lzjb.c @@ -20,12 +20,11 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. */ /* - * We keep our own copy of this algorithm for 2 main reasons: + * We keep our own copy of this algorithm for 3 main reasons: * 1. If we didn't, anyone modifying common/os/compress.c would * directly break our on disk format * 2. Our version of lzjb does not have a number of checks that the @@ -33,8 +32,8 @@ * 3. We initialize the lempel to ensure deterministic results, * so that identical blocks can always be deduplicated. * In particular, we are adding the "feature" that compress() can - * take a destination buffer size and return -1 if the data will not - * compress to d_len or less. + * take a destination buffer size and returns the compressed length, or the + * source length if compression would overflow the destination buffer. */ #include <sys/types.h> |