mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
libzpool: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12844
This commit is contained in:
@@ -242,6 +242,7 @@ out_ret:
|
||||
static nvlist_t *
|
||||
refresh_config(void *unused, nvlist_t *tryconfig)
|
||||
{
|
||||
(void) unused;
|
||||
return (spa_tryimport(tryconfig));
|
||||
}
|
||||
|
||||
@@ -254,6 +255,7 @@ refresh_config(void *unused, nvlist_t *tryconfig)
|
||||
static int
|
||||
pool_active(void *unused, const char *name, uint64_t guid, boolean_t *isactive)
|
||||
{
|
||||
(void) unused, (void) guid;
|
||||
zfs_iocparm_t zp;
|
||||
zfs_cmd_t *zc = NULL;
|
||||
zfs_cmd_legacy_t *zcl = NULL;
|
||||
@@ -322,6 +324,7 @@ static int
|
||||
pool_active(void *unused, const char *name, uint64_t guid,
|
||||
boolean_t *isactive)
|
||||
{
|
||||
(void) unused, (void) guid;
|
||||
int fd = open(ZFS_DEV, O_RDWR | O_CLOEXEC);
|
||||
if (fd < 0)
|
||||
return (-1);
|
||||
|
||||
Reference in New Issue
Block a user