mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zed.d/zed-functions.sh: fix zed_guid_to_pool() on dash
Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11935 Closes #11954
This commit is contained in:
		
							parent
							
								
									f87f41009f
								
							
						
					
					
						commit
						08d2e39719
					
				| @ -367,7 +367,7 @@ zed_notify_pushbullet() | |||||||
| # | # | ||||||
| # Notification via Slack Webhook <https://api.slack.com/incoming-webhooks>. | # Notification via Slack Webhook <https://api.slack.com/incoming-webhooks>. | ||||||
| # The Webhook URL (ZED_SLACK_WEBHOOK_URL) identifies this client to the | # The Webhook URL (ZED_SLACK_WEBHOOK_URL) identifies this client to the | ||||||
| # Slack channel.  | # Slack channel. | ||||||
| # | # | ||||||
| # Requires awk, curl, and sed executables to be installed in the standard PATH. | # Requires awk, curl, and sed executables to be installed in the standard PATH. | ||||||
| # | # | ||||||
| @ -511,10 +511,8 @@ zed_guid_to_pool() | |||||||
| 		return | 		return | ||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| 	guid=$(printf "%llu" "$1") | 	guid="$(printf "%u" "$1")" | ||||||
| 	if [ -n "$guid" ] ; then | 	$ZPOOL get -H -ovalue,name guid | awk '$1 == '"$guid"' {print $2; exit}' | ||||||
| 		$ZPOOL get -H -ovalue,name guid | awk '$1=='"$guid"' {print $2}' |  | ||||||
| 	fi |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # zed_exit_if_ignoring_this_event | # zed_exit_if_ignoring_this_event | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 наб
						наб