From patchwork Thu Aug 24 12:48:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 9919951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2834960349 for ; Thu, 24 Aug 2017 12:49:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C3FA28A26 for ; Thu, 24 Aug 2017 12:49:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 005F128A64; Thu, 24 Aug 2017 12:49:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EE8E28A26 for ; Thu, 24 Aug 2017 12:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333AbdHXMtJ (ORCPT ); Thu, 24 Aug 2017 08:49:09 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35593 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbdHXMtI (ORCPT ); Thu, 24 Aug 2017 08:49:08 -0400 Received: by mail-wr0-f195.google.com with SMTP id n53so1562071wrb.2 for ; Thu, 24 Aug 2017 05:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=9Wl9+MJsoEL7rVBJs6wf/IpBWEn3AVB0YLWxtLhUK08=; b=eq0WvDGMJhEJfm5z/G/sY0qs+F2DxGTPIRqQTXP4jfpOQVRzs5ooRw9FGsS0hkDdEU W/gthsbe9KCdLj1BSX3V/exGwE3cWWX/u/kEZ1yzPNTk2HMM6a0InLyTF8UtT820GvXc H09yjXuUIx68PaxJ4ca/NHzAZidVxc3xWqZXNV1A23X0PhW/Sq7YIkLtid8LBMfPYGSb GG7q4OeXGkVkBYQHCRCDTMfm3fWRqlcwC2wzTv3Old6giH7+wH7GxQEXjWds9NQWhvlt 1x9AoMlmVXYUd1uK/AYlPW3WazyOVFFe1RXIU/Wvkvy1c5pDEW4f8mCiyTi/vzOQJSxM IWdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=9Wl9+MJsoEL7rVBJs6wf/IpBWEn3AVB0YLWxtLhUK08=; b=D+EmprOzU9Lvvv3y1WD16uxsYgPDoE3PJn35SHZoAaHMAt2i2UFWwF2ldrYzoCuYuW EJ2+RVJDTo9A+mkVow/kf18OGIbJ7JHPdDZ1qOQ4sK62n2N7EE4WKpypFdvxyDEw926U DSY4SlEO2Y+5G3cgoduVAbJkohQ5JUcMAozMw/xuNYtTWpXkDi+WD03yGZiJzfDcq0d/ O5SL0ubq33T4LSEesCg+1o+TED7/tAsYUeqT9qLIVr0u8x7uBDvv8bx0jg0Pdq9Jy5fj PGYM48PrXInpk224fXRhEs779itIAjt451JcahRNW3yZZeXo2xyY2CkqPWk6ZjAtsEOZ JjOA== X-Gm-Message-State: AHYfb5jsNxjBU1Qa1vCGzRkiAQkwJ1G+nD0133MV9BBlZdaj5obk5NHX FERZtcCnNjHdhdeI7JI= X-Received: by 10.223.128.47 with SMTP id 44mr3689135wrk.175.1503578947156; Thu, 24 Aug 2017 05:49:07 -0700 (PDT) Received: from orange.brq.redhat.com. (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id m130sm3166651wma.27.2017.08.24.05.49.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Aug 2017 05:49:06 -0700 (PDT) From: Ilya Dryomov To: fstests@vger.kernel.org Subject: [PATCH] generic/108: tolerate old lvm utility versions Date: Thu, 24 Aug 2017 14:48:26 +0200 Message-Id: <1503578906-11387-1-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 2.4.3 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP lvm utility in Ubuntu 14.04 LTS treats -l 100%FREE as a hard number and not as an approximate upper limit. With ~5G scratch partition and ~128M scsi_debug device, vg_108 is 1279+31=1310 extents long, but only 31*2=62 can be allocated with -i 2: # lvm lvcreate -i 2 -I 4m -l 100%FREE -n lv_108 vg_108 Insufficient suitable allocatable extents for logical volume lv_108: 1248 more required Set the size to allocate to 100M. Signed-off-by: Ilya Dryomov --- tests/generic/108 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/108 b/tests/generic/108 index 1525dfb64a47..0caec7d02d72 100755 --- a/tests/generic/108 +++ b/tests/generic/108 @@ -74,7 +74,7 @@ $LVM_PROG pvcreate -f $SCSI_DEBUG_DEV $SCRATCH_DEV >>$seqres.full 2>&1 $LVM_PROG vgcreate -f $vgname $SCSI_DEBUG_DEV $SCRATCH_DEV >>$seqres.full 2>&1 # We use yes pipe instead of 'lvcreate --yes' because old version of lvm # (like 2.02.95 in RHEL6) don't support --yes option -yes | $LVM_PROG lvcreate -i 2 -I 4m -l 100%FREE -n $lvname $vgname \ +yes | $LVM_PROG lvcreate -i 2 -I 4m -L 100m -n $lvname $vgname \ >>$seqres.full 2>&1 # wait for lv creation to fully complete $UDEV_SETTLE_PROG >>$seqres.full 2>&1