rpms/kexec-tools/F-8 kexec-tools-1.102pre-ppc64-devtree.patch, NONE, 1.1 kexec-tools.spec, 1.108, 1.109
Neil Horman (nhorman)
fedora-extras-commits at redhat.com
Mon Mar 10 19:18:24 UTC 2008
- Previous message (by thread): rpms/egd/devel .cvsignore, NONE, 1.1 Makefile, NONE, 1.1 sources, NONE, 1.1
- Next message (by thread): rpms/PyAmanith/devel PyAmanith-0.3.34-buildfix.patch, NONE, 1.1 PyAmanith-0.3.34-headersfix.patch, NONE, 1.1 PyAmanith.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nhorman
Update of /cvs/extras/rpms/kexec-tools/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20799
Modified Files:
kexec-tools.spec
Added Files:
kexec-tools-1.102pre-ppc64-devtree.patch
Log Message:
Resolves bz 436740
kexec-tools-1.102pre-ppc64-devtree.patch:
--- NEW FILE kexec-tools-1.102pre-ppc64-devtree.patch ---
diff -up kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c
--- kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c.orig 2008-03-10 15:08:18.000000000 -0400
+++ kexec-tools-testing-20070330/kexec/arch/ppc64/crashdump-ppc64.c 2008-03-10 15:15:27.000000000 -0400
@@ -129,7 +129,8 @@ static int get_crash_memory_ranges(struc
goto err;
}
while ((dentry = readdir(dir)) != NULL) {
- if (strncmp(dentry->d_name, "memory@", 7))
+ if (strncmp(dentry->d_name, "memory@", 7) &&
+ strcmp(dentry->d_name, "memory"))
continue;
strcpy(fname, device_tree);
strcat(fname, dentry->d_name);
diff -up kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c.orig kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c
--- kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c.orig 2008-03-10 15:08:18.000000000 -0400
+++ kexec-tools-testing-20070330/kexec/arch/ppc64/kexec-ppc64.c 2008-03-10 15:15:27.000000000 -0400
@@ -101,7 +101,7 @@ err1:
}
/*
- * Count the memory@ nodes under /proc/device-tree and populate the
+ * Count the memory nodes under /proc/device-tree and populate the
* max_memory_ranges variable. This variable replaces MAX_MEMORY_RANGES
* macro used earlier.
*/
@@ -118,7 +118,8 @@ static int count_memory_ranges()
while ((dentry = readdir(dir)) != NULL) {
if (strncmp(dentry->d_name, "memory@", 7) &&
- strncmp(dentry->d_name, "pci@", 4))
+ strcmp(dentry->d_name, "memory") &&
+ strncmp(dentry->d_name, "pci@", 4))
continue;
max_memory_ranges++;
}
@@ -144,7 +145,8 @@ static int get_base_ranges()
return -1;
}
while ((dentry = readdir(dir)) != NULL) {
- if (strncmp(dentry->d_name, "memory@", 7))
+ if (strncmp(dentry->d_name, "memory@", 7) &&
+ strcmp(dentry->d_name, "memory"))
continue;
strcpy(fname, device_tree);
strcat(fname, dentry->d_name);
@@ -268,7 +270,8 @@ static int get_devtree_details(unsigned
while ((dentry = readdir(dir)) != NULL) {
if (strncmp(dentry->d_name, "chosen", 6) &&
- strncmp(dentry->d_name, "memory at 0", 8) &&
+ strncmp(dentry->d_name, "memory@", 7) &&
+ strcmp(dentry->d_name, "memory") &&
strncmp(dentry->d_name, "pci@", 4) &&
strncmp(dentry->d_name, "rtas", 4))
continue;
@@ -437,7 +440,8 @@ static int get_devtree_details(unsigned
add_usable_mem_rgns(rtas_base, rtas_size);
} /* rtas */
- if (strncmp(dentry->d_name, "memory at 0", 8) == 0) {
+ if (!strncmp(dentry->d_name, "memory@", 7) ||
+ !strcmp(dentry->d_name, "memory")) {
strcat(fname, "/reg");
if ((file = fopen(fname, "r")) == NULL) {
perror(fname);
Index: kexec-tools.spec
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/F-8/kexec-tools.spec,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- kexec-tools.spec 28 Feb 2008 16:25:31 -0000 1.108
+++ kexec-tools.spec 10 Mar 2008 19:17:51 -0000 1.109
@@ -1,6 +1,6 @@
Name: kexec-tools
Version: 1.102pre
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPL
Group: Applications/System
Summary: The kexec/kdump userspace component.
@@ -49,6 +49,7 @@
Patch301: kexec-tools-1.102pre-ppc64_rmo_top.patch
Patch302: kexec-tools-1.102pre-ppc64-buffer-overflow.patch
Patch303: kexec-tools-1.102pre-ppc-boots-ppc64.patch
+Patch304: kexec-tools-1.102pre-ppc64-devtree.patch
#
# Patches 401 through 500 are meant for s390 kexec-tools enablement
@@ -84,6 +85,7 @@
%patch301 -p1
%patch302 -p1
%patch303 -p1
+%patch304 -p1
%patch501 -p1
@@ -224,6 +226,9 @@
%doc kexec-kdump-howto.txt
%changelog
+* Mon Mar 10 2008 Neil Horman <nhorman at redhat.com> - 1.102pre-6
+- Fix ppc64 devtree naming (bz 436740)
+
* Thu Feb 28 2008 Neil Horman <nhorman at redhat.com> - 1.102pre-5
- Readding ability for ppc to boot 64 bit kernel (bz 405341)
- Previous message (by thread): rpms/egd/devel .cvsignore, NONE, 1.1 Makefile, NONE, 1.1 sources, NONE, 1.1
- Next message (by thread): rpms/PyAmanith/devel PyAmanith-0.3.34-buildfix.patch, NONE, 1.1 PyAmanith-0.3.34-headersfix.patch, NONE, 1.1 PyAmanith.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list