mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-05 12:19:48 +03:00
const: libdm cmd_data_v4
This commit is contained in:
parent
9247e754fe
commit
c9f9744f50
@ -90,7 +90,7 @@ static unsigned _ioctl_buffer_double_factor = 0;
|
||||
const int _dm_compat = 0;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
static struct cmd_data _cmd_data_v4[] = {
|
||||
static const struct cmd_data _cmd_data_v4[] = {
|
||||
{"create", DM_DEV_CREATE, {4, 0, 0}},
|
||||
{"reload", DM_TABLE_LOAD, {4, 0, 0}},
|
||||
{"remove", DM_DEV_REMOVE, {4, 0, 0}},
|
||||
|
@ -79,7 +79,7 @@ struct dm_task {
|
||||
};
|
||||
|
||||
struct cmd_data {
|
||||
const char *name;
|
||||
const char name[16];
|
||||
const unsigned cmd;
|
||||
const int version[3];
|
||||
};
|
||||
|
@ -89,7 +89,7 @@ static unsigned _ioctl_buffer_double_factor = 0;
|
||||
const int _dm_compat = 0;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
static struct cmd_data _cmd_data_v4[] = {
|
||||
static const struct cmd_data _cmd_data_v4[] = {
|
||||
{"create", DM_DEV_CREATE, {4, 0, 0}},
|
||||
{"reload", DM_TABLE_LOAD, {4, 0, 0}},
|
||||
{"remove", DM_DEV_REMOVE, {4, 0, 0}},
|
||||
|
@ -78,7 +78,7 @@ struct dm_task {
|
||||
};
|
||||
|
||||
struct cmd_data {
|
||||
const char *name;
|
||||
const char name[16];
|
||||
const unsigned cmd;
|
||||
const int version[3];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user