mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
uncomment libdevmapper readahead calls
This commit is contained in:
parent
ca592a2745
commit
69506f1dc4
@ -142,11 +142,10 @@ static int _info_run(const char *name, const char *dlid, struct dm_info *info,
|
|||||||
if (!dm_task_get_info(dmt, info))
|
if (!dm_task_get_info(dmt, info))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
|
||||||
if (!with_read_ahead) {
|
if (with_read_ahead)
|
||||||
if (read_ahead)
|
*read_ahead = dm_task_get_read_ahead(dmt);
|
||||||
*read_ahead = DM_READ_AHEAD_NONE;
|
else if (read_ahead)
|
||||||
} else
|
*read_ahead = DM_READ_AHEAD_NONE;
|
||||||
; // FIXME *read_ahead = dm_task_get_read_ahead(dmt);
|
|
||||||
|
|
||||||
r = 1;
|
r = 1;
|
||||||
|
|
||||||
@ -901,7 +900,7 @@ static int _add_new_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
|||||||
char *name, *dlid;
|
char *name, *dlid;
|
||||||
uint32_t max_stripe_size = UINT32_C(0);
|
uint32_t max_stripe_size = UINT32_C(0);
|
||||||
uint32_t read_ahead = lv->read_ahead;
|
uint32_t read_ahead = lv->read_ahead;
|
||||||
uint32_t flags = UINT32_C(0);
|
uint32_t read_ahead_flags = UINT32_C(0);
|
||||||
|
|
||||||
if (!(name = build_dm_name(dm->mem, lv->vg->name, lv->name, layer)))
|
if (!(name = build_dm_name(dm->mem, lv->vg->name, lv->name, layer)))
|
||||||
return_0;
|
return_0;
|
||||||
@ -955,9 +954,9 @@ static int _add_new_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
|||||||
if (read_ahead == DM_READ_AHEAD_AUTO)
|
if (read_ahead == DM_READ_AHEAD_AUTO)
|
||||||
read_ahead = max_stripe_size;
|
read_ahead = max_stripe_size;
|
||||||
else
|
else
|
||||||
flags = DM_READ_AHEAD_MINIMUM_FLAG;
|
read_ahead_flags = DM_READ_AHEAD_MINIMUM_FLAG;
|
||||||
|
|
||||||
// FIXME dm_tree_node_set_read_ahead(dnode, read_ahead, flags);
|
dm_tree_node_set_read_ahead(dnode, read_ahead, read_ahead_flags);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user