diff options
author | Artur Wojcik <artur.wojcik@intel.com> | 2009-12-10 12:03:40 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-10 12:03:40 -0700 |
commit | 33a6535d00eff4475a1557f3d9124e362a74ad28 (patch) | |
tree | 13d1c1d6262f2578e1d9d381ca9361d41c79f475 /super-intel.c | |
parent | 922f66a935df8e6b3b66073a89c47c68c2e8cbe3 (diff) | |
download | mdadm-33a6535d00eff4475a1557f3d9124e362a74ad28.tar.gz mdadm-33a6535d00eff4475a1557f3d9124e362a74ad28.tar.xz mdadm-33a6535d00eff4475a1557f3d9124e362a74ad28.zip |
Fix required to enable RAID arrays on SAS disks.
The patch increases the capacity of buffers used to store
sysfs path names. Originally the buffers were too small to
hold the canonical representation of sysfs path (in case
of a SAS device, especially a device installed behind an
expander).
Signed-off-by: Artur Wojcik <artur.wojcik@intel.com>
Reviewed-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index d87b2b0..325630f 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1588,7 +1588,7 @@ static void fd2devname(int fd, char *name) { struct stat st; char path[256]; - char dname[100]; + char dname[PATH_MAX]; char *nm; int rv; |