X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/d6f58310e6e1e92f287ff0e720dabad7eda84e11..5ad68a231454a2112fb10352b1856467ef1d9b10:/lib/bdev.py diff --git a/lib/bdev.py b/lib/bdev.py index 9488826..ee31220 100644 --- a/lib/bdev.py +++ b/lib/bdev.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -618,8 +618,8 @@ class LogicalVolume(BlockDev): return False status, major, minor, pe_size, stripes = out - if len(status) != 6: - logging.error("lvs lv_attr is not 6 characters (%s)", status) + if len(status) < 6: + logging.error("lvs lv_attr is not at least 6 characters (%s)", status) return False try: