]> sourceware.org Git - lvm2.git/commitdiff
Do not query nonexistent devices for readahead.
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 13 May 2009 14:13:54 +0000 (14:13 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 13 May 2009 14:13:54 +0000 (14:13 +0000)
WHATS_NEW
lib/activate/dev_manager.c

index 4da35d4516d463420225ca5c7851cfd48fd2b2d0..cf48eac2dc459011d0e0210feca7ca1bc82f5a7d 100644 (file)
--- 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.
index 671f4c3b5e01cb0f54805241ab8f972a6ce36384..3157f5f15859a70573b7cc53a4e340869c994a29 100644 (file)
@@ -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)
This page took 0.038683 seconds and 5 git commands to generate.