-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I141edb3b40727756ae192d43b1b241cb4becc1dc Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> Reviewed-on: http://photon-gerrit.lvn.broadcom.net/c/photon/+/25247 Reviewed-by: Guruswamy Basavaiah <guruswamy.basavaiah@broadcom.com>
- Loading branch information
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From e0df6c4c984d564e9e40913727e916a6cd8f466e Mon Sep 17 00:00:00 2001 | ||
From: Xiao Ni <xni@redhat.com> | ||
Date: Fri, 17 Jan 2025 15:15:40 +0800 | ||
Subject: [PATCH] mdadm/raid6check: add xmalloc.h to raid6check.c | ||
|
||
It reports building error: | ||
raid6check.c:324:26: error: implicit declaration of function xmalloc | ||
|
||
Add xmalloc.h to raid6check.c file to fix this. | ||
|
||
Signed-off-by: Xiao Ni <xni@redhat.com> | ||
Link: https://lore.kernel.org/r/20250117071540.4094-1-xni@redhat.com | ||
Signed-off-by: Song Liu <song@kernel.org> | ||
--- | ||
raid6check.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/raid6check.c b/raid6check.c | ||
index 99477761..95533f7d 100644 | ||
--- a/raid6check.c | ||
+++ b/raid6check.c | ||
@@ -23,6 +23,7 @@ | ||
*/ | ||
|
||
#include "mdadm.h" | ||
+#include "xmalloc.h" | ||
#include <stdint.h> | ||
#include <sys/mman.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
sources: | ||
- archive: mdadm-4.4.tar.gz | ||
archive_type: upstream | ||
archive_sha512sum: 08682b27f41a230f188d3b61e22e95ff8808b36c8fc2cba1dff443d39a72b35ba2eaf29ed64c7e5583c177fe6b71df983ec9a80a4128d8f07d58b7435d4700f6 | ||
version: "4.4" | ||
name: mdadm-4.4 | ||
url: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/snapshot/mdadm-4.4.tar.gz | ||
repo_url: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git | ||
commit_id: 4fbb2b5e445fa77783bf5fc10841a534d44a295e | ||
skip_list: [] | ||
missing: [] | ||
spdx: | ||
package: | ||
detailed_description: 'The mdadm program controls Linux md devices (software RAID arrays)' | ||
home_page: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/about | ||
license_concluded: GPL-2.0-or-later | ||
license_declared: GPL-2.0-or-later | ||
short_summary: The mdadm program controls Linux md devices (software RAID arrays) | ||
supplier: 'Organization: Broadcom, Inc.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
License: GPL-2.0-or-later AND GPL-3.0-or-later AND Zlib AND GPL-1.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Summary: The mdadm program controls Linux md devices (software RAID arrays) | ||
Name: mdadm | ||
Version: 4.4 | ||
Release: 1%{?dist} | ||
URL: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/about | ||
Group: Applications/Utilities | ||
Vendor: VMware, Inc. | ||
Distribution: Photon | ||
|
||
Source0: https://www.kernel.org/pub/linux/utils/raid/mdadm/%{name}-%{version}.tar.gz | ||
%define sha512 %{name}=08682b27f41a230f188d3b61e22e95ff8808b36c8fc2cba1dff443d39a72b35ba2eaf29ed64c7e5583c177fe6b71df983ec9a80a4128d8f07d58b7435d4700f6 | ||
|
||
Source1: license.txt | ||
%include %{SOURCE1} | ||
|
||
Patch0: build-fix.patch | ||
|
||
BuildRequires: systemd-devel | ||
|
||
%description | ||
The mdadm program is used to create, manage, and monitor Linux MD (software | ||
RAID) devices. As such, it provides similar functionality to the raidtools | ||
package. However, mdadm is a single program, and it can perform | ||
almost all functions without a configuration file, though a configuration | ||
file can be used to help with some common tasks. | ||
|
||
%prep | ||
%autosetup -p1 | ||
|
||
%build | ||
%make_build | ||
|
||
%install | ||
%make_install %{?_smp_mflags} \ | ||
BINDIR=%{_sbindir} \ | ||
SYSTEMD_DIR=%{_unitdir} \ | ||
install-systemd | ||
|
||
install -Dp -m 644 documentation/mdadm.conf-example \ | ||
%{buildroot}%{_sysconfdir}/%{name}.conf | ||
|
||
mkdir -p -m 755 %{buildroot}%{_datadir}/%{name} | ||
install -Dp -m 755 misc/mdcheck %{buildroot}%{_datadir}/%{name}/mdcheck | ||
|
||
%clean | ||
rm -rf %{buildroot}/* | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_udevrulesdir}/*-md-* | ||
%{_sbindir}/%{name} | ||
%{_sbindir}/mdmon | ||
%{_unitdir}/md* | ||
%{_mandir}/man*/md* | ||
%{_libdir}/systemd/system-shutdown/mdadm.shutdown | ||
%config(noreplace) %{_sysconfdir}/%{name}.conf | ||
%dir %{_datadir}/%{name}/ | ||
%{_datadir}/%{name}/* | ||
|
||
%changelog | ||
* Wed Feb 19 2025 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 4.4-1 | ||
- Initial version. |