From patchwork Thu Dec 15 09:03:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 9475691 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 B8418607EE for ; Thu, 15 Dec 2016 09:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F0B2285C9 for ; Thu, 15 Dec 2016 09:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 907E628675; Thu, 15 Dec 2016 09:08:40 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 19C74285C9 for ; Thu, 15 Dec 2016 09:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935258AbcLOJIg (ORCPT ); Thu, 15 Dec 2016 04:08:36 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:14267 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752030AbcLOJId (ORCPT ); Thu, 15 Dec 2016 04:08:33 -0500 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="1020761" Received: from unknown (HELO cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 15 Dec 2016 17:03:33 +0800 Received: from localhost.localdomain (unknown [10.167.226.34]) by cn.fujitsu.com (Postfix) with ESMTP id 9B0B141B4BD7; Thu, 15 Dec 2016 17:03:32 +0800 (CST) From: Qu Wenruo To: linux-btrfs@vger.kernel.org, dsterba@suse.cz Cc: t-itoh@jp.fujitsu.com Subject: [PATCH v2 3/3] btrfs-progs: convert-test: trigger chunk allocation after convert Date: Thu, 15 Dec 2016 17:03:31 +0800 Message-Id: <20161215090331.27486-4-quwenruo@cn.fujitsu.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161215090331.27486-1-quwenruo@cn.fujitsu.com> References: <20161215090331.27486-1-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 X-yoursite-MailScanner-ID: 9B0B141B4BD7.AD595 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: quwenruo@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Populate fs after convert so we can trigger data chunk allocation. This can expose too restrict old rollback condition Reported-by: Chandan Rajendra Signed-off-by: Qu Wenruo --- tests/common | 4 ++++ tests/common.convert | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tests/common b/tests/common index 571118a..4a1330f 100644 --- a/tests/common +++ b/tests/common @@ -486,6 +486,10 @@ generate_dataset() { run_check $SUDO_HELPER ln -s "$dirpath/$long_filename" "$dirpath/slow_slink.$num" done ;; + large) + run_check $SUDO_HELPER dd if=/dev/urandom bs=32M count=1 \ + of="$dirpath/$dataset_type" bs=32M >/dev/null 2>&1 + ;; esac } diff --git a/tests/common.convert b/tests/common.convert index a2d3152..8c9242e 100644 --- a/tests/common.convert +++ b/tests/common.convert @@ -160,6 +160,9 @@ convert_test_post_checks_all() { convert_test_post_check_checksums "$1" convert_test_post_check_permissions "$2" convert_test_post_check_acl "$3" + + # Create a large file to trigger data chunk allocation + generate_dataset "large" run_check_umount_test_dev }