Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
pacemaker.26123
bsc#1181744-0003-Refactor-fencing-new-function-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1181744-0003-Refactor-fencing-new-function-stonith_op_state_pendi.patch of Package pacemaker.26123
From 234ac5db32f85edd73613684970f8ccfc7265830 Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Fri, 19 Feb 2021 11:09:22 +0100 Subject: [PATCH 3/4] Refactor: fencing: new function stonith_op_state_pending() for checking if a fencing operation is in pending state --- include/crm/fencing/internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) Index: pacemaker-2.0.4+20200616.2deceaa3a/include/crm/fencing/internal.h =================================================================== --- pacemaker-2.0.4+20200616.2deceaa3a.orig/include/crm/fencing/internal.h +++ pacemaker-2.0.4+20200616.2deceaa3a/include/crm/fencing/internal.h @@ -184,4 +184,18 @@ int stonith__validate_agent_html(pcmk__o int stonith__validate_agent_text(pcmk__output_t *out, va_list args); int stonith__validate_agent_xml(pcmk__output_t *out, va_list args); +/*! + * \internal + * \brief Is a fencing operation in pending state? + * + * \param[in] state State as enum op_state value + * + * \return A boolean + */ +static inline bool +stonith__op_state_pending(enum op_state state) +{ + return state != st_failed && state != st_done; +} + #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor