From 2d3335fa489851192790bfe27eb3657fdd76f94b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Kabel=C3=A1=C4=8D?= Date: Wed, 13 May 2009 14:13:54 +0000 Subject: [PATCH] Do not query nonexistent devices for readahead. --- WHATS_NEW | 1 + lib/activate/dev_manager.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 4da35d451..cf48eac2d 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.46 - ================================ + Do not query nonexistent devices for readahead. Remove NON_BLOCKING lock flag from tools and set a policy to auto-set. Remove snapshot_count from VG and use function instead. Fix first_seg() call for empty segment list. diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 671f4c3b5..3157f5f15 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -141,7 +141,7 @@ 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) { + if (with_read_ahead && info->exists) { if (!dm_task_get_read_ahead(dmt, read_ahead)) goto_out; } else if (read_ahead) -- 2.43.5