]> granicus.if.org Git - zfs/blobdiff - include/libzfs.h
Race condition between spa async threads and export
[zfs] / include / libzfs.h
index 8b348746a73b2af0febbe8162936136a3c5a5fd0..22cb0408e6204330ada06a57b9a892b741ef121e 100644 (file)
@@ -22,7 +22,7 @@
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2011, 2018 by Delphix. All rights reserved.
- * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright Joyent, Inc.
  * Copyright (c) 2013 Steven Hartland. All rights reserved.
  * Copyright (c) 2016, Intel Corporation.
  * Copyright 2016 Nexenta Systems, Inc.
@@ -147,6 +147,7 @@ typedef enum zfs_error {
        EZFS_NO_TRIM,           /* no active trim */
        EZFS_TRIM_NOTSUP,       /* device does not support trim */
        EZFS_NO_RESILVER_DEFER, /* pool doesn't support resilver_defer */
+       EZFS_EXPORT_IN_PROGRESS,        /* currently exporting the pool */
        EZFS_UNKNOWN
 } zfs_error_t;
 
@@ -688,7 +689,8 @@ extern int zfs_hold(zfs_handle_t *, const char *, const char *,
 extern int zfs_hold_nvl(zfs_handle_t *, int, nvlist_t *);
 extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
-extern uint64_t zvol_volsize_to_reservation(uint64_t, nvlist_t *);
+extern uint64_t zvol_volsize_to_reservation(zpool_handle_t *, uint64_t,
+    nvlist_t *);
 
 typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
     uid_t rid, uint64_t space);