diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-12-10 10:22:16 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-12-11 11:24:45 +0100 |
commit | ed65860861edcb5cd41656b05833defef5d592d0 (patch) | |
tree | a836e3b6cffedf934fe869a0d561c351a731411a /tools/toollib.c | |
parent | ec49f07b0dc89720f4a74a1212e106990099d2d6 (diff) | |
download | lvm2-ed65860861edcb5cd41656b05833defef5d592d0.tar.gz |
thin: remove detection for thin discard support
Remove no longer needed warning for unsuppoted discards
for non-power-2 lvcreate commands.
(Missed from the patch for the same update in lvchange made
by commit dde5a6c52b315d7b)
Diffstat (limited to 'tools/toollib.c')
-rw-r--r-- | tools/toollib.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index 4c9a43d05..817580f8e 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -1596,10 +1596,6 @@ int update_pool_params(struct cmd_context *cmd, unsigned attr, log_error("Chunk size must be multiple of %s.", display_size(cmd, DM_THIN_MIN_DATA_BLOCK_SIZE)); return 0; - } else if ((*discards != THIN_DISCARDS_IGNORE) && - (*chunk_size & (*chunk_size - 1))) { - log_warn("WARNING: Using discards ignore for chunk size non power of 2."); - *discards = THIN_DISCARDS_IGNORE; } if (!*pool_metadata_size) { |