mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 03:30:34 +03:00
Remove unused zpool_is_bootable
Otherwise compiler errors with: ``` libzfs_pool.c:449:1: error: 'zpool_is_bootable' defined but not used [-Werror=unused-function] ``` Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #10734
This commit is contained in:
parent
eaa25f1a8e
commit
663a070c92
@ -445,17 +445,6 @@ bootfs_name_valid(const char *pool, const char *bootfs)
|
||||
return (B_FALSE);
|
||||
}
|
||||
|
||||
static boolean_t
|
||||
zpool_is_bootable(zpool_handle_t *zhp)
|
||||
{
|
||||
char bootfs[ZFS_MAX_DATASET_NAME_LEN];
|
||||
|
||||
return (zpool_get_prop(zhp, ZPOOL_PROP_BOOTFS, bootfs,
|
||||
sizeof (bootfs), NULL, B_FALSE) == 0 && strncmp(bootfs, "-",
|
||||
sizeof (bootfs)) != 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Given an nvlist of zpool properties to be set, validate that they are
|
||||
* correct, and parse any numeric properties (index, boolean, etc) if they are
|
||||
|
Loading…
Reference in New Issue
Block a user