Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
mdadm.5365
0226-Lib.c-Fix-geting-devname-for-devices-with-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0226-Lib.c-Fix-geting-devname-for-devices-with-long-path.patch of Package mdadm.5365
From 52a94085618472abf768aa32c5ebe22336433fa5 Mon Sep 17 00:00:00 2001 From: Pawel Baldysiak <pawel.baldysiak@intel.com> Date: Fri, 21 Oct 2016 11:37:51 +0200 Subject: [PATCH 320/359] Lib.c: Fix geting devname for devices with long path References: bsc#1081910 In scenario where VMD is enabled, and "x8" type of NVMe drive is plugged into PCIe switch - the path will be longer than 200 chars (additional VMD domain + 2 level of PCIe switches). This patch makes the buffer big enough to handle this kind of configurations. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 057ee52..b640634 100644 --- a/lib.c +++ b/lib.c @@ -64,7 +64,7 @@ int get_mdp_major(void) char *devid2kname(int devid) { char path[30]; - char link[200]; + char link[PATH_MAX]; static char devnm[32]; char *cp; int n; -- 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