1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

fix changed parms

This commit is contained in:
Alasdair Kergon 2007-12-03 18:00:38 +00:00
parent 15d2547427
commit fd0af4bd29

View File

@ -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;