From patchwork Mon May 1 17:04:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 9706735 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 958F66020B for ; Mon, 1 May 2017 17:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 859F72074F for ; Mon, 1 May 2017 17:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A6C327F95; Mon, 1 May 2017 17:04:32 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 70AB12074F for ; Mon, 1 May 2017 17:04:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956AbdEAREa (ORCPT ); Mon, 1 May 2017 13:04:30 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33292 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbdEARE2 (ORCPT ); Mon, 1 May 2017 13:04:28 -0400 Received: by mail-pg0-f67.google.com with SMTP id s62so5212744pgc.0 for ; Mon, 01 May 2017 10:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ow7v7V8AyhnkfU1dq2mnSWjhkp06AbRx8kmpBXiuKEA=; b=rC7R4rXfUNaaacUeQVECCTp6Urad1L6Hg94KDV5xiSXMO3/Ped/jfazQuj0yzCfQ1a iQS5dPHKSGVXebmj6z2mvry/dJFVoY7uZ6x8HOfENZx53iukTTCCS4wDUkM8/weVROcT nEcloK7cC3QMDa3nT2k0QE0emGlCW75AUedCunqSjVEwIg4OL9Q0ce2xCaHWhhK4U7GQ IJgceG6pVSi4Otdf8TdxXOD0uGn9yv7tlJ7OqcR1GH2LgTtNt2u48bt/IPY2K1Qa8cW8 q78SEbh2MCujwQ8W9JVroRRE8SwtxSSB8Elfb+vtpPs5+jtHSs/YBfJzORcmrfnq/8g9 zYzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ow7v7V8AyhnkfU1dq2mnSWjhkp06AbRx8kmpBXiuKEA=; b=Dd6VE2sNvNgtKWhlpp0jNthDEeU1ibv2fr3cnMkSjqoB0XRXXiQg6e0U4O6KOuwqAf txobC7v+52GFHCtM7khE21xZ78TE+FMB94tinIOBH/keDLGo7vDvzYZjUUH12E1TO6Xi +N6kYCHIjC/zXAVCpOBWDwrxZnTPrXhz5S+9gBpbvSSy+I+P5PuFMD4wYK1/XzZ0Z+/I HdDjVdS1lu8AAscsw7veSchBlX9mUOLBXE2X0BJ5pc1eYCvKZiEXk+3K9BEXCogd/xkK 3MmGitK8TDacCKh+XJEfeGFjmSkOExIVfkL2SsL2PDMo6ibFFKN44rdBuzliEYuiPUSV Eu2A== X-Gm-Message-State: AN3rC/4kngootNPe4JnipUbeizLzXBLQlLE4rBIweHOpVJSOXR2lJGA4 5iK7o8iTvr451A== X-Received: by 10.99.123.21 with SMTP id w21mr259605pgc.106.1493658267857; Mon, 01 May 2017 10:04:27 -0700 (PDT) Received: from ebiggers-linuxstation.kir.corp.google.com ([100.119.30.131]) by smtp.gmail.com with ESMTPSA id h27sm25112543pgn.24.2017.05.01.10.04.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 May 2017 10:04:27 -0700 (PDT) From: Eric Biggers To: Theodore Ts'o Cc: fstests@vger.kernel.org, Eric Biggers Subject: [PATCH] kvm-xfstests: unmount /results before shutting down Date: Mon, 1 May 2017 10:04:20 -0700 Message-Id: <20170501170420.94456-1-ebiggers3@gmail.com> X-Mailer: git-send-email 2.13.0.rc0.306.g87b477812d-goog Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers kvm-xfstests shuts down the VM with 'poweroff -f', which with old versions of systemd's 'poweroff' command (including the version included in Debian Jessie) does not call sync(). This could cause data written to the /results filesystem to be lost. Work around this by unmounting /results before shutting down. Signed-off-by: Eric Biggers --- kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot | 1 + 1 file changed, 1 insertion(+) diff --git a/kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot b/kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot index 2eb3a2b..cd01ffd 100755 --- a/kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot +++ b/kvm-xfstests/test-appliance/files/root/kvm-xfstests.boot @@ -92,6 +92,7 @@ then /bin/rm -f /run/gce-finalize-wait else /root/runtests.sh + umount /results poweroff -f > /dev/null 2>&1 fi else