From patchwork Mon Jul 11 22:27:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 9224355 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 F032F60572 for ; Mon, 11 Jul 2016 22:27:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1EF526E8A for ; Mon, 11 Jul 2016 22:27:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D698C27F0B; Mon, 11 Jul 2016 22:27:54 +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_SIGNED, 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 E63BE27E78 for ; Mon, 11 Jul 2016 22:27:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750901AbcGKW1w (ORCPT ); Mon, 11 Jul 2016 18:27:52 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33678 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbcGKW1v (ORCPT ); Mon, 11 Jul 2016 18:27:51 -0400 Received: by mail-pf0-f173.google.com with SMTP id i123so39919934pfg.0 for ; Mon, 11 Jul 2016 15:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xxEPuZuuF+y9y+cbuyrOA4cfkjZTb3xOA2uAcyQNyVs=; b=bvwtQ8Rw910t6ueo9MnTl43Ix/SLzjOMJPBKzLusZQ8uTLmWaepnFV6CoQ/a4EjQ15 SWgrtPy+sDBj4+BQss+GhE/y9RNhKm8nUabia+5BFMbNvkmHKNpOKMHCFzzLlY5cD4Or WML/GK98gGEP8WfRC98TxkKn49gjKuhj+kXJIHufbIWtBMY6VPSnYFPicGkz2oTJspfF xukIYa1qZT0MiQ+lgjUlOrj6xkHHe2eGX7EdTxSJjb89AEzOaaBBCKYkEF0cBpdmhEW7 wdBZmXeY9QCp2UmVsUPN37XLVhzwB8nKbYkhnDg2doP3YBcBFQw/Pnx9QQrzwPN1a7M2 /cIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xxEPuZuuF+y9y+cbuyrOA4cfkjZTb3xOA2uAcyQNyVs=; b=k7wAikS9smiJ6bmLm1od0J7KgJ2FEn119ktn+mu75gqFvKnvrfJI4LdIHi7mR2Fn6Q bOeEVF6UNoHvNge8W1HEDMnDqzeADUuhKfcXdYITnqR/SqiRyQQiv8VwROD6RDyHtoIS iarCGrtzmdCTh2KS6SYe+rGUQBLV1lAHrKMGPtEM4YNUmZr/fYfvlzuqqREUpAa+ZYh5 +h+w4llpJQXxCzuvkrw+yk43QFyecLRr1BJ8CpOL6w7PB1arFb6QH8wKgztQQNP2srRN GGMLhOVUmTy3jdepRH7S1BjxUhm+hr81erN9GQUA0CtxIRbzdZdZMNpOjrCPxz6vXugG rZ+g== X-Gm-Message-State: ALyK8tLobkLYHPRM6w6JNXc8VVGVg9iRmV0aeUaaqsBZOmXam33WtnzeTKF6Yuzt0rYqy3JK X-Received: by 10.98.103.214 with SMTP id t83mr14727592pfj.158.1468276070392; Mon, 11 Jul 2016 15:27:50 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:200::1:f4f7]) by smtp.gmail.com with ESMTPSA id xl1sm7246806pab.8.2016.07.11.15.27.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2016 15:27:49 -0700 (PDT) From: Omar Sandoval To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com, Qu Wenruo Subject: [PATCH RESEND v2] fstests: btrfs/079: Fix wrong value passed to available space check. Date: Mon, 11 Jul 2016 15:27:17 -0700 Message-Id: <54913a3d3aca9142fe5ebf3ee06ff6e7a7736678.1468275843.git.osandov@fb.com> X-Mailer: git-send-email 2.9.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Qu Wenruo Wrong value is passed to _require_fs_space, which should be in unit of kilobyte(1024), but passed in unit of gigabyte(1024^3). Fix it. Reviewed-by: David Sterba Signed-off-by: Qu Wenruo --- This is from January of last year, looks like it fell through the cracks. tests/btrfs/079 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/btrfs/079 b/tests/btrfs/079 index 6aee3a373f91..ed4eb727ee2b 100755 --- a/tests/btrfs/079 +++ b/tests/btrfs/079 @@ -72,7 +72,7 @@ rm -f $seqres.full _scratch_mkfs >>$seqres.full 2>&1 _scratch_mount -_require_fs_space $SCRATCH_MNT $(($filesize / 1024 / 1024 / 1024)) +_require_fs_space $SCRATCH_MNT $(($filesize / 1024)) $XFS_IO_PROG -f -c "falloc 0 $filesize" $testfile dd_work() {