]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Remove unused `zpool_is_bootable`
authorGeorge Melikov <mail@gmelikov.ru>
Tue, 18 Aug 2020 16:30:12 +0000 (19:30 +0300)
committerGitHub <noreply@github.com>
Tue, 18 Aug 2020 16:30:12 +0000 (09:30 -0700)
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

lib/libzfs/libzfs_pool.c

index b75ab3ec157ecb6738f3d6171a237ce017f16d14..2501965e42adafaef6fb60272cb0d6833c1f604b 100644 (file)
@@ -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