mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
fix changed parms
This commit is contained in:
parent
15d2547427
commit
fd0af4bd29
@ -142,9 +142,10 @@ static int _info_run(const char *name, const char *dlid, struct dm_info *info,
|
||||
if (!dm_task_get_info(dmt, info))
|
||||
goto_out;
|
||||
|
||||
if (with_read_ahead)
|
||||
*read_ahead = dm_task_get_read_ahead(dmt);
|
||||
else if (read_ahead)
|
||||
if (with_read_ahead) {
|
||||
if (!dm_task_get_read_ahead(dmt, read_ahead))
|
||||
goto_out;
|
||||
} else if (read_ahead)
|
||||
*read_ahead = DM_READ_AHEAD_NONE;
|
||||
|
||||
r = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user