Commit graph

372 commits

Author SHA1 Message Date
Wen Xiong
c565bc4a61 iprutils: Fixes to comply with hardened build flags by ubuntu and debian
On Ubuntu and Debian, the hardened build passes the following flags to the compilation
through env. variables.
Hence several formatting strings are mandatory. Also for that to work, the Makefile
needs to handle the env. variables.
$ dpkg-buildflags
CFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
CPPFLAGS=-D_FORTIFY_SOURCE=2
CXXFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
FFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4
GCJFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4
LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro

Signed-off-by: Frédéric Bonnard <frediz@linux.vnet.ibm.com>
2014-04-03 10:27:43 -05:00
Wen Xiong
7fd7ba1e1e iprutils: remove libpci dependency
<pci/pci.h> was being included, but not actually used in any meaningful
way.  Since libpci is distributed under the GPL which is not compatible
with iprutils' licence, it would be a good idea to avoid this
dependency.

iprutils was however relying on the u8, u16, u32, and u64 types defined
by <pci/types.h>.  Define these locally (using <stdint.h>) instead.

Signed-off-by: Colin Watson <cjwatson@debian.org>

---
2014-04-03 09:53:23 -05:00
Wen Xiong
0788de640f iprutils: Failed to write attribute: delete when hot removing disks
This patch fixes the "Failed to write attribute: delete" when
performing hot remove disks

Signed-off-by: Wen Xiong< wenxiong@linux.vnet.ibm.com>
2014-04-03 09:36:02 -05:00
Wen Xiong
980e2d30d5 iprutils: Segment Fault when trying to show details of missing devices.
This patch fixes seg fault when trying to show detailes of missing devices.

Signed-off-by: Wen Xiong< wenxiong@linux.vnet.ibm.com>
2014-03-27 09:16:08 -05:00
Kleber Sacilotto de Souza
d927ce1724 Merge branch 'rel-2-4-0' 2014-03-25 19:46:25 -03:00
Daniel Kreling
23cfa86a0d iprutils: fixing last commit indentation
Fixing indentation error in last commit
(5c95aafd64)

Signed-off by: Daniel Kreling <kreling@imap.linux.ibm.com>
2014-03-11 17:44:20 -03:00
Wen Xiong
1dabc65c86 iprutils: fixes several errors after commit id 19f365
This patches fixes several issues after merging commit id 19f365.

Signed-off-by: Wen Xiong< wenxiong@linux.vnet.ibm.com>
2014-03-11 13:58:49 -03:00
Wen Xiong
ebcfecec64 Subject: iprutils: Move up ipruitls to 2.4.0
This patch moves up iprutils to 2.4.0.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-03-11 13:58:49 -03:00
root
96923605ff Subject: iprutils: Eliminate libsysfs dependency
libsysfs is unmaintained and just adds an oerhead for very little
gain. So implement the core functions ourselves and drop libsysfs.

Signed-off-by:  Hannes Reinecke <hare@suse.de>
2014-03-11 13:58:49 -03:00
Daniel Kreling
5c95aafd64 iprutils: fix "create test array" for dual adapter tests
When creating array to perform dual adapter tests, iprlib.c had a
flawed ipr_update_qac_with_zeroed_devs function, which was not
initializing dev_rcd variable. This commit initializes it and
fixes the crash.

Signed-off-by:  Daniel Kreling <kreling@imap.linux.ibm.com>
                Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2014-03-07 17:51:56 -03:00
Wen Xiong
77b15d9d0d Subject: iprutils: Move up iprutils verion to 2.3.18
The patch moves up iprutils version to 2.3.18

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-02-07 14:24:45 -06:00
Wen Xiong
f6ee8eb984 Subject: iprutils: compilation fails on Ubuntu
The patch fixes compilation fails on Ubuntu.

Signed-off-by: Frederic Bonnard<frediz@linux.vnet.ibm.com>
2014-02-07 13:15:51 -06:00
Wen Xiong
b618a95ef3 Subject: iprutils: Array start enhancement
The patch se "Logical Disk State" feature to track if a devie has been
zeroed to avoid the Zeroed indication.

Signed-off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
2014-02-07 13:03:18 -06:00
Wen Xiong
e7460f4198 Subject: iprutils: Update iprutils version to 2.3.17
Update iprutils version to 2.3.15

signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-01-31 16:25:15 -06:00
Wen Xiong
edb5060af7 Subject: iprutils: Enable Active/Active mode by default
Enable Active/Active mode by default.

Signed-off-by: Brian King<brking@linux.vnet.ibm.com>
2014-01-31 16:12:10 -06:00
Wen Xiong
3f1fbdd4af Subject: iprutils: Fixed several bugs in LE environment
When test iprutils in LE environment, we found several bugs. This patch
fixed these bugs.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-01-31 16:03:26 -06:00
Wen Xiong
521acd882c Subject: iprutils: Creating T2 array fails in CLI when have valid configuration
In testing easy tier, when configuration has valid sdd/hdd capability, creating
an array fails in CLI.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2014-01-31 15:41:28 -06:00
Wen Xiong
dd02ac14e6 Subject: iprutils: increase dump size
To support debugging new adapter, increase dump size.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-11-15 14:03:25 -06:00
Wen Xiong
97d0eaae63 iprutils: Specify a string label when creating a RAID array
Add CLI option to specify a text string label
when creating a RAID array which can then be
later queried.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2013-11-15 12:22:54 -06:00
Wen Xiong
540af6c0f2 iprutils: move up iprutils version to 2.3.16
This patch moves iprutils version to 2.3.16

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-11-05 13:50:11 -06:00
Wen Xiong
4d409aa491 iprutils: Fix hung issue when formatting disks from JBOD to Advance Function
In several linux distro, when formatting from JBOD to AF, system hung after
formatting finished. The patch fixes the issue.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-11-05 13:32:15 -06:00
Wen Xiong
b9843e7460 iprutils: Fix disk location code issue in VSES on P8
Disk in VSES on P8 only has single resource path, this is difference with
VSES on P7. This patch fixes the issue and all disks are showed up in
hot swap menu correctly.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-11-05 13:23:17 -06:00
root
a7b43c67e2 iprutils: Fix column align issue in iprconfig
This patch fixes the column align issue in the header of all PCI/SCSI location display.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-11-05 13:16:05 -06:00
Kleber Sacilotto de Souza
50726ed8da iprutils: Add sanity check on location code display path
In get_drive_phy_loc_with_ses_phy_loc() the code assumes that the IOA
has the physical location code information on the struct, but if the
platform does not provide this information the code will break since the
string is not sanity-checked before being used.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-09-30 11:58:25 -03:00
Wen Xiong
71192d4ea6 iprutils: fixed format issues when doing 4K disk test
This patch fixed the format issues when we are doing 4K disk regression
test.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-09-20 12:46:45 -05:00
Kleber Sacilotto de Souza
c483d3a3f0 iprutils: fix column width
After commit f2f69447 (iprutils: suspend/resume utility for BlueHawk),
the iprutils output of some screens had the columns header "PCI/SCSI
Location" and "Platform Location" shortened by one character, but the
contents of the columns were not changed, so the contents of the
following columns are not aligned with the header.

This patch fixes the issue by changing the columns content width, so
columns are aligned with their headers.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-09-16 18:12:56 -03:00
Wen Xiong
363a097549 iprutils: Update iprutils version to 2.3.15
Update iprutils version to 2.3.15.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-07-03 10:56:27 -05:00
Wen Xiong
24d6ac340f iprutils: wrong block size when formtting 4K in GUI interface
The patch fixes the bugs found out during 4K unit test.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-07-03 10:41:04 -05:00
Wen Xiong
c2ec99ed69 iprutils: Downgraded iprutils version to 2.3.14
To drop a fix in ipruils 2.3.15. Downgraded iprutils version to 2.3.14.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-07-03 10:08:20 -05:00
Wen Xiong
491ab4c4c3 iprutils: Update iprutils version to 2.3.15
Update iprutils version to 2.3.15.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-06-28 11:08:47 -05:00
Wen Xiong
2418702d4a iprutils: Update ipr messages
The patch updates ipr messages in iprconfig.c

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-06-28 11:01:58 -05:00
Wen Xiong
f9086c2dc2 iprutils: Add support to format 4K disks in GUI
This patch addes the support to format 4K disks to RAID/JBOD in GUI.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-06-28 10:57:31 -05:00
Wen Xiong
f2da4f2679 iprutils: Add support to create raids with 4K disks
This patch addes support to create an raid with 4K disks.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-06-28 10:51:48 -05:00
Wen Xiong
d179c3d8fa iprutils: Add support to format 4K disks to RAID/JBOD
This patch addes support to format 4K disks to RAID or JBOD in iprutils
command line.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-06-28 10:38:31 -05:00
Wen Xiong
d132d93e8d iprutils: Add new description for 4K devices
This patch addes the new description for 4K devices on all the
screens in iprutils GUI interface.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-06-28 10:28:18 -05:00
Wen Xiong
b86f1f6416 iprutils: Enable 4K disks supprt
This patch adds support 4k bytes/sector.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-06-28 10:03:06 -05:00
Kleber Sacilotto de Souza
3293fa8426 iprutils: fix possible problems with yl_serial_num filling
In function check_current_config(), when inquiring the IOA to fill the
yl_serial_num structure field, the di_vpd struct is used even if the
call to ipr_inquiry() has failed, which can lead to segmentation fault
since the struct can have any values in it. Other issues can also happen
since pchr is used without checking if strstr() successfully found the
substring.

This patch fixed the problem by checking for the return code from
ipr_inquiry() and the pointer returned by strstr().

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-05-23 15:44:03 -03:00
Wen Xiong
a4794bdc97 iprutils: update the version for the 2.3.14 release
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-05-07 15:28:36 -05:00
Wen Xiong
5d937880e5 iprutils: Showed stale information after hot plug a disk into an array
This patch fixes the stale productaid information after hot plugging
a disk into an array.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-05-07 15:11:09 -05:00
Wen Xiong
3edfa62445 iprutils: segmentation fault when removing a disk with hotspare disk
If removing a disk from an array first, then hotspare disk kicks in.
This causes two issues here:
(1)hotspare disk kicks in but status showed as "Missing"
(2)Concurrent maintence menu got segmentation fault.

This patch fixed both of above issues.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-04-10 16:00:22 -05:00
Wen Xiong
da2d125ff7 iprutils: remove debug code in index_in_page2()
Dropped one line debug code which cause by previous patch.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-04-10 15:49:41 -05:00
Wen Xiong
7269b44e8f iprutils: dmesg showed sysfs errors when updating microcode
The patch fixes the sysfs errors when updating microcode on
the adapter.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-04-09 19:36:25 -05:00
Wen Xiong
14b6817102 Subject: iprutils: fix the platform location issue for Tres drawer
Use the index in paeg2 to locate the physical location in page7.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-04-09 19:05:57 -05:00
Kleber Sacilotto de Souza
c4da9b8c00 iprutils: fix hop count defines
The defines used to check if the hop count is 2 or 3 bits were not
defined correctly.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-04-03 14:40:31 -03:00
Kleber Sacilotto de Souza
d60f920fd8 iprutils: fix wrong secondary status
In some scenarios the adapters can be wrongly identified as secondaries,
despite the fact that they are not connected to other adapters.

The function get_dual_ioa_state() relies on the information from the
cur_state field of the ipr_dual_ioa_entry struct to set the is_secondary
flag, even though the query multiple adapter status returns 0 as the
number of multiple adapter entries. In this case, if we use the
ioa_entry struct we can wrongly change the is_secondary flag.

This patch fix this issue by not changing the default multi adapter
configuration when the number of multiple adapter entries is 0.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2013-03-12 13:11:59 -03:00
Wen Xiong
7801347ad0 Subject: iprutils: Fix "R/W Protected" error after adapter reset
All array status changed to "R/W Protected" after adapter reset. The patch
fixed the issue.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
2013-02-28 11:18:51 -06:00
Kleber Sacilotto de Souza
41a82b4879 iprutils: update the version information for the 2.3.13 release
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2012-12-04 19:42:12 -02:00
Kleber Sacilotto de Souza
2aa629499f iprutils: fix release date on the spec file
The rpm spec file had a wrong date format on the %changelog section,
generating errors when compiling the package. This patch fixes the date
format.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2012-12-03 15:16:09 -02:00
Kleber Sacilotto de Souza
87d206a24c iprutils: change %post and %preun sections of spec file
Not all distros provide an interface to install_initd and remove_initd
that is compliant to the LSB specification, requiring more parameters
to be given than just the path to the init script. In such cases, it is
preferred to use chkconfig when available.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
2012-11-22 11:09:28 -02:00
Wen Xiong
eea97da1c4 iprutils: fix_for_lsvpd_disk_location
This patch fixes the platform location for hard disk. Now platform location
for hard disk is combined location of ses and physical location slot number.

signed-off-by: wenxiong@linux.vnet.ibm.com
2012-10-24 09:57:35 -05:00