1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

gcc: match size of holder name to direcnt d_name

As d_name is defined as 256 avoid gcc warning - although
in our case the used size will be much smaller.
This commit is contained in:
Zdenek Kabelac 2021-03-09 13:58:50 +01:00
parent 75037bee5d
commit 15c588f931

View File

@ -198,7 +198,7 @@ static int _native_dev_is_mpath_component(struct cmd_context *cmd, struct dev_fi
char link_path[PATH_MAX]; /* some obscure, unpredictable sysfs path */ char link_path[PATH_MAX]; /* some obscure, unpredictable sysfs path */
char holders_path[PATH_MAX]; /* e.g. "/sys/block/sda/holders/" */ char holders_path[PATH_MAX]; /* e.g. "/sys/block/sda/holders/" */
char dm_dev_path[PATH_MAX]; /* e.g. "/dev/dm-1" */ char dm_dev_path[PATH_MAX]; /* e.g. "/dev/dm-1" */
char holder_name[128] = { 0 }; /* e.g. "dm-1" */ char holder_name[256]; /* e.g. "dm-1" */
const char *sysfs_dir = dm_sysfs_dir(); const char *sysfs_dir = dm_sysfs_dir();
int dev_major = MAJOR(dev->dev); int dev_major = MAJOR(dev->dev);
int dev_minor = MINOR(dev->dev); int dev_minor = MINOR(dev->dev);