Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
powerpc-utils.908
powerpc-utils-bug-930153_drmgr-replace-function...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File powerpc-utils-bug-930153_drmgr-replace-function.patch of Package powerpc-utils.908
drmgr: Fix to check for drmgr REPLACE (-R) flag From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> backport of upstream commit 7f1ba6f2cefbc72112ee809d2b5fd90e7525417d In drmgr command drmgr -R (REPLACE) flag check was missing, so this patch is to fix drmgr -R flag in valid_pci_options() interface. ************************************************* Test results: before fixing the patch: # drmgr -c pci -s U78CD.001.FZH0003-P2-C3 -R The '-r', '-a', -R or '-i' option must be spcified for PCI operation After fixing the patch: # ./src/drmgr/drmgr -c pci -s U78CD.001.FZH0003-P2-C3 -R The specified PCI slot is either invalid or does not support hot plug operations.xing the patch: ************************************************************** Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> --- src/drmgr/drslot_chrp_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drmgr/drslot_chrp_pci.c b/src/drmgr/drslot_chrp_pci.c index 0c8de2f..d3873c7 100644 --- a/src/drmgr/drslot_chrp_pci.c +++ b/src/drmgr/drslot_chrp_pci.c @@ -855,8 +855,8 @@ valid_pci_options(struct options *opts) } if ((opts->action != ADD) && (opts->action != REMOVE) - && (opts->action != IDENTIFY)) { - say(ERROR, "The '-r', '-a', or '-i' option must be spcified " + && (opts->action != IDENTIFY) && (opts->action != REPLACE)) { + say(ERROR, "The '-r', '-a', '-R' or '-i' option must be spcified " "for PCI operations\n"); return -1; }
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