]> sourceware.org Git - lvm2.git/commitdiff
Thin removing limitation on activation of pool device.
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Nov 2011 14:59:20 +0000 (14:59 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Nov 2011 14:59:20 +0000 (14:59 +0000)
Since activation of pool is now independent on thin activation,
user may do whatever he needs - thought preferable thin should stay alive,
but it it will be found inactivate, update_pool will bring the pool up.

tools/lvchange.c
tools/toollib.c

index c58a9e38098bbef73dd444725fd90d81bddb73aa..6cb91853938f07de992edc410adaaec5cef68559 100644 (file)
@@ -534,12 +534,6 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
                return ECMD_FAILED;
        }
 
-       if (lv_is_used_thin_pool(lv) &&
-           (arg_count(cmd, available_ARG))) {
-               log_error("Can't change pool volume \"%s\".", lv->name);
-               return ECMD_FAILED;
-       }
-
        if (lv_is_cow(lv) && !lv_is_virtual_origin(origin_from_cow(lv)) &&
            arg_count(cmd, available_ARG)) {
                log_error("Can't change snapshot logical volume \"%s\"",
index 219674736c0c24fc8ef664a02181d7dcc9f4a883..aba52dc2dc5e9a1de07da83cdf747f6677e98153 100644 (file)
@@ -126,11 +126,6 @@ int process_each_lv_in_vg(struct cmd_context *cmd,
                if (lv_is_virtual_origin(lvl->lv) && !arg_count(cmd, all_ARG))
                        continue;
 
-               /* Only unused thin pool can change its availability */
-               if (!lvargs_supplied && lv_is_used_thin_pool(lvl->lv) &&
-                   arg_count(cmd, available_ARG))
-                       continue;
-
                /*
                 * Only let hidden LVs through it --all was used or the LVs 
                 * were specifically named on the command line.
This page took 0.054159 seconds and 5 git commands to generate.