Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
mdadm.5365
0208-Change-behavior-in-find_free_devnm-when-wr...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0208-Change-behavior-in-find_free_devnm-when-wrapping-aro.patch of Package mdadm.5365
From 2e466cce45ac2397ea426a765c829c621901664b Mon Sep 17 00:00:00 2001 From: Mike Lovell <mlovell@bluehost.com> Date: Wed, 18 May 2016 12:23:14 -0600 Subject: [PATCH 275/359] Change behavior in find_free_devnm when wrapping around. References: bsc#1081910 Newer kernels don't allow for specifying an array larger than 511. This makes it so find_free_devnm wraps to 511 instead of 2^20 - 1. Signed-off-by: Mike Lovell <mlovell@bluehost.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- mdopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdopen.c b/mdopen.c index e71d758..f818fdf 100644 --- a/mdopen.c +++ b/mdopen.c @@ -439,7 +439,7 @@ char *find_free_devnm(int use_partitions) static char devnm[32]; int devnum; for (devnum = 127; devnum != 128; - devnum = devnum ? devnum-1 : (1<<20)-1) { + devnum = devnum ? devnum-1 : (1<<9)-1) { if (use_partitions) sprintf(devnm, "md_d%d", devnum); -- 2.16.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