]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zpool/os/freebsd/zpool_vdev_os.c
Fix the FreeBSD userspace build (#15716)
[mirror_zfs.git] / cmd / zpool / os / freebsd / zpool_vdev_os.c
index aa66d29fa60484f2a065c25bdff26d3ddcb4b1f9..c57c689afa9c8b5aaa5c9c740676a3b44193f97f 100644 (file)
@@ -6,7 +6,7 @@
  * You may not use this file except in compliance with the License.
  *
  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
+ * or https://opensource.org/licenses/CDDL-1.0.
  * See the License for the specific language governing permissions
  * and limitations under the License.
  *
@@ -86,6 +86,7 @@ int
 check_device(const char *name, boolean_t force, boolean_t isspare,
     boolean_t iswholedisk)
 {
+       (void) iswholedisk;
        char path[MAXPATHLEN];
 
        if (strncmp(name, _PATH_DEV, sizeof (_PATH_DEV) - 1) != 0)
@@ -99,6 +100,7 @@ check_device(const char *name, boolean_t force, boolean_t isspare,
 boolean_t
 check_sector_size_database(char *path, int *sector_size)
 {
+       (void) path, (void) sector_size;
        return (0);
 }
 
@@ -116,3 +118,30 @@ after_zpool_upgrade(zpool_handle_t *zhp)
                    "details.\n"), zpool_get_name(zhp));
        }
 }
+
+int
+check_file(const char *file, boolean_t force, boolean_t isspare)
+{
+       return (check_file_generic(file, force, isspare));
+}
+
+int
+zpool_power_current_state(zpool_handle_t *zhp, char *vdev)
+{
+
+       (void) zhp;
+       (void) vdev;
+       /* Enclosure slot power not supported on FreeBSD yet */
+       return (-1);
+}
+
+int
+zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on)
+{
+
+       (void) zhp;
+       (void) vdev;
+       (void) turn_on;
+       /* Enclosure slot power not supported on FreeBSD yet */
+       return (ENOTSUP);
+}