Skip to content

Commit

Permalink
not ro check
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
  • Loading branch information
pcd1193182 committed Jun 10, 2024
1 parent 2703840 commit 648abde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/libzfs/libzfs_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ zpool_destroy(zpool_handle_t *zhp, const char *log_str)
(void) zfs_error(hdl, EZFS_BUSY, errbuf);
fnvlist_free(outnvl);
} else {
(void) zpool_standard_error(hdl, errno, errbuf);
(void) zpool_standard_error(hdl, err, errbuf);
}

if (zfp)
Expand Down
4 changes: 2 additions & 2 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7404,12 +7404,12 @@ zfs_ioctl_init(void)

zfs_ioctl_register("zpool_destroy_new", ZFS_IOC_POOL_DESTROY_NEW,
zfs_ioc_pool_destroy_new, zfs_secpolicy_config, POOL_NAME,
POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,
POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,
zfs_keys_pool_destroy_new, ARRAY_SIZE(zfs_keys_pool_destroy_new));

zfs_ioctl_register("zpool_export_new", ZFS_IOC_POOL_EXPORT_NEW,
zfs_ioc_pool_export_new, zfs_secpolicy_config, POOL_NAME,
POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,
POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,
zfs_keys_pool_export_new, ARRAY_SIZE(zfs_keys_pool_export_new));

/* IOCTLS that use the legacy function signature */
Expand Down

0 comments on commit 648abde

Please sign in to comment.