mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
cov: ensure read_ahead is available
Make sure read_ahead pointer is not NULL when quering for RA.
This commit is contained in:
parent
30a23a1941
commit
43db8f8d5d
@ -278,7 +278,7 @@ static int _info_run(const char *dlid, struct dm_info *dminfo,
|
||||
(strcmp(name_check, devname) != 0))
|
||||
dminfo->exists = 0; /* mismatching name -> device does not exist */
|
||||
|
||||
if (with_read_ahead && dminfo->exists) {
|
||||
if (with_read_ahead && read_ahead && dminfo->exists) {
|
||||
if (!dm_task_get_read_ahead(dmt, read_ahead))
|
||||
goto_out;
|
||||
} else if (read_ahead)
|
||||
|
Loading…
x
Reference in New Issue
Block a user