spa.h (277300) | spa.h (286575) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2011, 2014 by Delphix. All rights reserved. 24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2011, 2014 by Delphix. All rights reserved. 24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
25 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. |
|
25 */ 26 27#ifndef _SYS_SPA_H 28#define _SYS_SPA_H 29 30#include <sys/avl.h> 31#include <sys/zfs_context.h> 32#include <sys/nvpair.h> --- 664 unchanged lines hidden (view full) --- 697extern spa_t *spa_lookup(const char *name); 698extern spa_t *spa_add(const char *name, nvlist_t *config, const char *altroot); 699extern void spa_remove(spa_t *spa); 700extern spa_t *spa_next(spa_t *prev); 701 702/* Refcount functions */ 703extern void spa_open_ref(spa_t *spa, void *tag); 704extern void spa_close(spa_t *spa, void *tag); | 26 */ 27 28#ifndef _SYS_SPA_H 29#define _SYS_SPA_H 30 31#include <sys/avl.h> 32#include <sys/zfs_context.h> 33#include <sys/nvpair.h> --- 664 unchanged lines hidden (view full) --- 698extern spa_t *spa_lookup(const char *name); 699extern spa_t *spa_add(const char *name, nvlist_t *config, const char *altroot); 700extern void spa_remove(spa_t *spa); 701extern spa_t *spa_next(spa_t *prev); 702 703/* Refcount functions */ 704extern void spa_open_ref(spa_t *spa, void *tag); 705extern void spa_close(spa_t *spa, void *tag); |
706extern void spa_async_close(spa_t *spa, void *tag); |
|
705extern boolean_t spa_refcount_zero(spa_t *spa); 706 707#define SCL_NONE 0x00 708#define SCL_CONFIG 0x01 709#define SCL_STATE 0x02 710#define SCL_L2ARC 0x04 /* hack until L2ARC 2.0 */ 711#define SCL_ALLOC 0x08 712#define SCL_ZIO 0x10 --- 56 unchanged lines hidden (view full) --- 769extern uint64_t spa_get_asize(spa_t *spa, uint64_t lsize); 770extern uint64_t spa_get_dspace(spa_t *spa); 771extern uint64_t spa_get_slop_space(spa_t *spa); 772extern void spa_update_dspace(spa_t *spa); 773extern uint64_t spa_version(spa_t *spa); 774extern boolean_t spa_deflate(spa_t *spa); 775extern metaslab_class_t *spa_normal_class(spa_t *spa); 776extern metaslab_class_t *spa_log_class(spa_t *spa); | 707extern boolean_t spa_refcount_zero(spa_t *spa); 708 709#define SCL_NONE 0x00 710#define SCL_CONFIG 0x01 711#define SCL_STATE 0x02 712#define SCL_L2ARC 0x04 /* hack until L2ARC 2.0 */ 713#define SCL_ALLOC 0x08 714#define SCL_ZIO 0x10 --- 56 unchanged lines hidden (view full) --- 771extern uint64_t spa_get_asize(spa_t *spa, uint64_t lsize); 772extern uint64_t spa_get_dspace(spa_t *spa); 773extern uint64_t spa_get_slop_space(spa_t *spa); 774extern void spa_update_dspace(spa_t *spa); 775extern uint64_t spa_version(spa_t *spa); 776extern boolean_t spa_deflate(spa_t *spa); 777extern metaslab_class_t *spa_normal_class(spa_t *spa); 778extern metaslab_class_t *spa_log_class(spa_t *spa); |
779extern void spa_evicting_os_register(spa_t *, objset_t *os); 780extern void spa_evicting_os_deregister(spa_t *, objset_t *os); 781extern void spa_evicting_os_wait(spa_t *spa); |
|
777extern int spa_max_replication(spa_t *spa); 778extern int spa_prev_software_version(spa_t *spa); 779extern int spa_busy(void); 780extern uint8_t spa_get_failmode(spa_t *spa); 781extern boolean_t spa_suspended(spa_t *spa); 782extern uint64_t spa_bootfs(spa_t *spa); 783extern uint64_t spa_delegation(spa_t *spa); 784extern objset_t *spa_meta_objset(spa_t *spa); --- 110 unchanged lines hidden --- | 782extern int spa_max_replication(spa_t *spa); 783extern int spa_prev_software_version(spa_t *spa); 784extern int spa_busy(void); 785extern uint8_t spa_get_failmode(spa_t *spa); 786extern boolean_t spa_suspended(spa_t *spa); 787extern uint64_t spa_bootfs(spa_t *spa); 788extern uint64_t spa_delegation(spa_t *spa); 789extern objset_t *spa_meta_objset(spa_t *spa); --- 110 unchanged lines hidden --- |