mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
vdo: fix reader error path
Nothing to be closed on this error path.
This commit is contained in:
parent
4baef0f93f
commit
b6b1c19365
@ -189,7 +189,7 @@ bool dm_vdo_parse_logical_size(const char *vdo_path, uint64_t *logical_blocks)
|
|||||||
*logical_blocks = 0;
|
*logical_blocks = 0;
|
||||||
if ((fh = open(vdo_path, O_RDONLY)) == -1) {
|
if ((fh = open(vdo_path, O_RDONLY)) == -1) {
|
||||||
log_sys_debug("Failed to open VDO backend %s.", vdo_path);
|
log_sys_debug("Failed to open VDO backend %s.", vdo_path);
|
||||||
goto err;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(fh, BLKGETSIZE64, &size) == -1) {
|
if (ioctl(fh, BLKGETSIZE64, &size) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user