Print this page
3756 want lz4 support for metadata compression

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dmu.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dmu.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2012 by Delphix. All rights reserved.
  25   25   * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  26   26   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       27 + * Copyright (c) 2013 Martin Matuska. All rights reserved.
  27   28   */
  28   29  
  29   30  /* Portions Copyright 2010 Robert Milkowski */
  30   31  
  31   32  #ifndef _SYS_DMU_H
  32   33  #define _SYS_DMU_H
  33   34  
  34   35  /*
  35   36   * This file describes the interface that the DMU provides for its
  36   37   * consumers.
↓ open down ↓ 355 lines elided ↑ open up ↑
 392  393      dmu_tx_t *tx);
 393  394  
 394  395  /*
 395  396   * Decide how to write a block: checksum, compression, number of copies, etc.
 396  397   */
 397  398  #define WP_NOFILL       0x1
 398  399  #define WP_DMU_SYNC     0x2
 399  400  #define WP_SPILL        0x4
 400  401  
 401  402  void dmu_write_policy(objset_t *os, struct dnode *dn, int level, int wp,
 402      -    struct zio_prop *zp);
      403 +    struct zio_prop *zp, uint64_t txg);
 403  404  /*
 404  405   * The bonus data is accessed more or less like a regular buffer.
 405  406   * You must dmu_bonus_hold() to get the buffer, which will give you a
 406  407   * dmu_buf_t with db_offset==-1ULL, and db_size = the size of the bonus
 407  408   * data.  As with any normal buffer, you must call dmu_buf_read() to
 408  409   * read db_data, dmu_buf_will_dirty() before modifying it, and the
 409  410   * object must be held in an assigned transaction before calling
 410  411   * dmu_buf_will_dirty.  You may use dmu_buf_set_user() on the bonus
 411  412   * buffer as well.  You must release your hold with dmu_buf_rele().
 412  413   */
↓ open down ↓ 392 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX