diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2016-10-21 11:37:51 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-10-26 18:03:25 +0200 |
commit | 52a94085618472abf768aa32c5ebe22336433fa5 (patch) | |
tree | ee9febba6c358f59971ca38b703b0d3920ec9f25 /lib.c | |
parent | IMSM: Enable spanning between VMD domains (diff) | |
download | mdadm-52a94085618472abf768aa32c5ebe22336433fa5.tar.xz mdadm-52a94085618472abf768aa32c5ebe22336433fa5.zip |
Lib.c: Fix geting devname for devices with long path
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>
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |