mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
o Put underscore between vg and lv name.
This commit is contained in:
parent
03a8a07d67
commit
30f7ee62e8
@ -56,7 +56,7 @@ static int _check_devfs(const char *dev_prefix)
|
||||
|
||||
void _build_lv_path(char *buffer, size_t len, struct logical_volume *lv)
|
||||
{
|
||||
snprintf(buffer, len, "%s%s/%s-%s",
|
||||
snprintf(buffer, len, "%s%s/%s_%s",
|
||||
lv->vg->cmd->dev_dir, dm_dir(), lv->vg->name, lv->name);
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ static int _mk_node(struct logical_volume *lv)
|
||||
}
|
||||
|
||||
_build_lv_path(lv_path, sizeof(lv_path), lv);
|
||||
|
||||
|
||||
if (mknod(lv_path, S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP, dev) < 0) {
|
||||
log_sys_error("mknod", lv_path);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user