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:
parent
75037bee5d
commit
15c588f931
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user