mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Fix the FreeBSD userspace build (#15716)
- Mark some parameters to zpool_power*() as unused.
- Add a stub zpool_disk_wait().
Fixes: a9520e6e5 ("zpool: Add slot power control, print power status")
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
			
			
This commit is contained in:
		
							parent
							
								
									69142125d7
								
							
						
					
					
						commit
						9ef15845f5
					
				| @ -128,6 +128,9 @@ check_file(const char *file, boolean_t force, boolean_t isspare) | |||||||
| int | int | ||||||
| zpool_power_current_state(zpool_handle_t *zhp, char *vdev) | zpool_power_current_state(zpool_handle_t *zhp, char *vdev) | ||||||
| { | { | ||||||
|  | 
 | ||||||
|  | 	(void) zhp; | ||||||
|  | 	(void) vdev; | ||||||
| 	/* Enclosure slot power not supported on FreeBSD yet */ | 	/* Enclosure slot power not supported on FreeBSD yet */ | ||||||
| 	return (-1); | 	return (-1); | ||||||
| } | } | ||||||
| @ -135,6 +138,10 @@ zpool_power_current_state(zpool_handle_t *zhp, char *vdev) | |||||||
| int | int | ||||||
| zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on) | 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 */ | 	/* Enclosure slot power not supported on FreeBSD yet */ | ||||||
| 	return (ENOTSUP); | 	return (ENOTSUP); | ||||||
| } | } | ||||||
|  | |||||||
| @ -263,3 +263,11 @@ update_vdevs_config_dev_sysfs_path(nvlist_t *config) | |||||||
| { | { | ||||||
| 	(void) config; | 	(void) config; | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | int | ||||||
|  | zpool_disk_wait(const char *path) | ||||||
|  | { | ||||||
|  | 
 | ||||||
|  | 	(void) path; | ||||||
|  | 	return (ENOTSUP); | ||||||
|  | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Mark Johnston
						Mark Johnston