]> sourceware.org Git - lvm2.git/commitdiff
Must not override alloc policy specified by user.
authorAlasdair Kergon <agk@redhat.com>
Mon, 7 Nov 2011 13:54:54 +0000 (13:54 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 7 Nov 2011 13:54:54 +0000 (13:54 +0000)
lib/metadata/lv_manip.c

index 588118eeb6d5e4799674fdddd8d7ab2b57e38eec..eccee370bdddb12682dc018beb8a6ff8cd6bdad9 100644 (file)
@@ -2576,12 +2576,9 @@ int lv_extend(struct logical_volume *lv,
                return lv_add_virtual_segment(lv, 0u, extents, segtype, thin_pool_name);
 
        if (!lv->le_count && segtype_is_thin_pool(segtype)) {
-               if (stripes == 1 && (dm_list_size(allocatable_pvs) == 1)) {
-                       log_warn("WARNING: Only one PV available for thin pool data and metadata.");
-                       alloc = ALLOC_ANYWHERE;
-               }
                /* Thin pool allocation treats its metadata device like a mirror log. */
-               /* TODO: add support for stripped metadata pool */
+               /* FIXME Allow pool and data on same device with NORMAL */
+               /* FIXME Support striped metadata pool */
                log_count = 1;
        } else if (segtype_is_raid(segtype) && !lv->le_count)
                log_count = mirrors * stripes;
This page took 0.042276 seconds and 5 git commands to generate.