Compare commits

...

4 Commits

Author SHA1 Message Date
Tony Asleson c6a674042b Rebuild
We got a build failure for aarch64 during the configure step.
Error looks to be python memory error.

<class 'MemoryError'>

Signed-off-by: Tony Asleson <tasleson@redhat.com>
2022-11-11 11:31:20 -06:00
Tony Asleson af7d04ceab Upgrade to 1.9.6
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2022-11-10 12:45:25 -06:00
Tony Asleson 758f713680 Update to 1.9.5
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2022-10-17 14:11:46 -05:00
Fedora Release Engineering 5982badb03 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 19:07:48 +00:00
5 changed files with 17 additions and 35 deletions

2
.gitignore vendored
View File

@ -42,3 +42,5 @@
/libstoragemgmt-1.9.2.tar.gz
/libstoragemgmt-1.9.3.tar.gz
/libstoragemgmt-1.9.4.tar.gz
/libstoragemgmt-1.9.5.tar.gz
/libstoragemgmt-1.9.6.tar.gz

View File

@ -1,9 +0,0 @@
diff --git a/packaging/daemon/libstoragemgmt.conf b/packaging/daemon/libstoragemgmt.conf
index 1c118a9..cdb43c2 100644
--- a/packaging/daemon/libstoragemgmt.conf
+++ b/packaging/daemon/libstoragemgmt.conf
@@ -1,2 +1,2 @@
-D /var/run/lsm 0775 root libstoragemgmt -
-D /var/run/lsm/ipc 0775 root libstoragemgmt -
+D /run/lsm 0775 root libstoragemgmt -
+D /run/lsm/ipc 0775 root libstoragemgmt -

View File

@ -1,21 +0,0 @@
diff --git a/c_binding/lsm_local_disk.c b/c_binding/lsm_local_disk.c
index 4e8277b..9e3e02e 100644
--- a/c_binding/lsm_local_disk.c
+++ b/c_binding/lsm_local_disk.c
@@ -1093,13 +1093,12 @@ static void _sysfs_sas_addr_get(const char *blk_name, char *tp_sas_addr) {
memset(sysfs_sas_addr, 0, _SYSFS_SAS_ADDR_LEN);
memset(tp_sas_addr, 0, _SG_T10_SPL_SAS_ADDR_LEN);
- sysfs_sas_path = (char *)malloc(sizeof(char) *
- (strlen("/sys/block//device/sas_address") +
- strlen(blk_name) + 1 /* trailing \0 */));
+ sysfs_sas_path = (char *)malloc(PATH_MAX);
if (sysfs_sas_path == NULL)
goto out;
- sprintf(sysfs_sas_path, "/sys/block/%s/device/sas_address", blk_name);
+ snprintf(sysfs_sas_path, PATH_MAX,
+ "/sys/block/%s/device/sas_address", blk_name);
if (!_file_exists(sysfs_sas_path))
goto out;

View File

@ -1,14 +1,12 @@
%bcond_with test
Name: libstoragemgmt
Version: 1.9.4
Release: 4%{?dist}
Version: 1.9.6
Release: 2%{?dist}
Summary: Storage array management library
License: LGPLv2+
URL: https://github.com/libstorage/libstoragemgmt
Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-change-run-dir.patch
Patch2: 0002-use-snprintf.patch
Requires: python3-%{name}%{_isa}
# Packages that have been removed
@ -446,6 +444,18 @@ fi
%{_mandir}/man1/local_lsmplugin.1*
%changelog
* Fri Nov 11 2022 Tony Asleson <tasleson@redhat.com> - 1.9.6-2
- Rebuild
* Thu Nov 10 2022 Tony Asleson <tasleson@redhat.com> - 1.9.6-1
- Upgrade to 1.9.6
* Mon Oct 17 2022 Tony Asleson <tasleson@redhat.com> - 1.9.5-1
- Upgrade to 1.9.5
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jul 18 2022 Tony Asleson <tasleson@redhat.com> - 1.9.4-4
- Use systemd-sysusers

View File

@ -1 +1 @@
SHA512 (libstoragemgmt-1.9.4.tar.gz) = ad2ac4ddc6c6faeffb00916608aca1568a39599aba745217d554cf9164c0dc72fc2bb4932873c3fc09bc8cf3d9ce815c4286351bef145ea3a875e6320bba74a3
SHA512 (libstoragemgmt-1.9.6.tar.gz) = e884fe9deed6c61ba69d04227a3274ec0c8c6587305790ae44195dee56fd427a48f5f7ab7c68703bfb5b1ce7e167485687e1b853cc72f63e253ab725a68b6dc2