Print this page
zpool import speedup

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/spa.h
          +++ new/usr/src/uts/common/fs/zfs/sys/spa.h
↓ open down ↓ 562 lines elided ↑ open up ↑
 563  563          (((BP_GET_LEVEL(bp) > 0) || (DMU_OT_IS_METADATA(BP_GET_TYPE(bp)))) ? \
 564  564          ARC_BUFC_METADATA : ARC_BUFC_DATA)
 565  565  
 566  566  typedef enum spa_import_type {
 567  567          SPA_IMPORT_EXISTING,
 568  568          SPA_IMPORT_ASSEMBLE
 569  569  } spa_import_type_t;
 570  570  
 571  571  /* state manipulation functions */
 572  572  extern int spa_open(const char *pool, spa_t **, void *tag);
      573 +extern int spa_open_lock(const char *pool, spa_t **, void *tag, int lock);
 573  574  extern int spa_open_rewind(const char *pool, spa_t **, void *tag,
 574  575      nvlist_t *policy, nvlist_t **config);
 575  576  extern int spa_get_stats(const char *pool, nvlist_t **config, char *altroot,
 576  577      size_t buflen);
 577  578  extern int spa_create(const char *pool, nvlist_t *config, nvlist_t *props,
 578  579      nvlist_t *zplprops);
 579  580  extern int spa_import_rootpool(char *devpath, char *devid);
 580  581  extern int spa_import(const char *pool, nvlist_t *config, nvlist_t *props,
 581  582      uint64_t flags);
 582  583  extern nvlist_t *spa_tryimport(nvlist_t *tryconfig);
↓ open down ↓ 278 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX