From patchwork Fri Apr 28 08:24:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9704033 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 B5619602B7 for ; Fri, 28 Apr 2017 08:25:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5F6128602 for ; Fri, 28 Apr 2017 08:25:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B03128663; Fri, 28 Apr 2017 08:25:04 +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 4FEF528602 for ; Fri, 28 Apr 2017 08:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034798AbdD1IZD (ORCPT ); Fri, 28 Apr 2017 04:25:03 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35006 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033096AbdD1IYu (ORCPT ); Fri, 28 Apr 2017 04:24:50 -0400 Received: by mail-wm0-f67.google.com with SMTP id d79so9443420wmi.2; Fri, 28 Apr 2017 01:24:49 -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:in-reply-to:references; bh=0YFxB3/31w7aicFNpuCjkMBw/pbUQnGeaXO/CyPY6Rc=; b=pyd0w/BVczD9k1No9WTL0wBWn/3MLOLzxfM31yHJBUPyoD3uxgha2enZgWD6sdfrKS Ne6F4io5KRqCNYGHUDjWpBm5EQVqpeVucFvV9Oj46QLw4aK0pwfg9Y7Rsfca5FIp0ey9 1FhOKYp5SOVnRVjeyw1qizfgTS9g6dlL2+Ad95VhTM5fGoBo05G9kLfe2JbOeGESgKSf b4mS8OqwvMY1d4q9muF04Ir6/6vd2mN8gFf4pCHKOMKP+je+QdYS+ARGG44/sRWpM2QA NkkQlui/UVO9sPezq2ZHX9PCBc5lCZhZoZ/ny4oGAy9CpxK13Oe17Wbf01KtbkjBeHMi xPVA== 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:in-reply-to :references; bh=0YFxB3/31w7aicFNpuCjkMBw/pbUQnGeaXO/CyPY6Rc=; b=lmSUL3E3v9Zw+/7QP9bNTQ4NE/2668TcQZeq5BsqZ8Kr/NFP6t8vdMIOrSwwACaEgC Q2zHmWlpXgtEdH1vqhgXaPG7DiC74i0rbFr2cStGuzc8mKYC+019rUHpWcy2AhRPC9EE srWwhcf4oHGMJqtKv5D8KgE2kBpg76jKz0KBdf9CjIUKe5IbzidYnLBIzSUZFrawvcCm TiqUlGiEBo6VoHuXSUGioudSInZgydWzlSglwietj/IiPENTtB0H4ZAxv6wF3dNH1zEN kr1MK3UeBSnRTvxwbb81y51ySpVZEyqGtaWWoyBkOCUxoEFQzPf12tMWJEQAoX6n8noH o1lQ== X-Gm-Message-State: AN3rC/4YydUuUHEBI4UCLN5zWILbsyFV7T/tww+QaQEKHKLFeUwbwOKX rc4IConqJNAqQQ== X-Received: by 10.28.95.67 with SMTP id t64mr5240096wmb.140.1493367888764; Fri, 28 Apr 2017 01:24:48 -0700 (PDT) Received: from amir-VirtualBox.lan (bzq-79-179-55-127.red.bezeqint.net. [79.179.55.127]) by smtp.gmail.com with ESMTPSA id e67sm637836wma.9.2017.04.28.01.24.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 01:24:48 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , Xiong Zhou , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH v2 6/6] overlay/017: test persistent inode numbers after mount cycle Date: Fri, 28 Apr 2017 11:24:48 +0300 Message-Id: <1493367888-26550-7-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493367888-26550-1-git-send-email-amir73il@gmail.com> References: <1493367888-26550-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Overlayfs directory inodes are constant across copy up, but not persistent on mount cycle. Compare the inode numbers before and after mount cycle. Signed-off-by: Amir Goldstein --- tests/overlay/017 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/overlay/017 b/tests/overlay/017 index fe2518b..c5671ec 100755 --- a/tests/overlay/017 +++ b/tests/overlay/017 @@ -9,7 +9,8 @@ # - stat file A shows inode number Y != X # # Also test if d_ino of readdir entries changes after copy up -# and if inode numbers persist after rename and drop caches. +# and if inode numbers persist after rename, drop caches and +# mount cycle. # #----------------------------------------------------------------------- # @@ -139,6 +140,12 @@ echo 3 > /proc/sys/vm/drop_caches # Compare inode numbers before/after rename and drop caches check_inode_numbers $testdir $tmp.after_copyup $tmp.after_move +# Verify that the inode numbers survive a mount cycle +_scratch_cycle_mount + +# Compare inode numbers before/after mount cycle +check_inode_numbers $testdir $tmp.after_move $tmp.after_cycle + echo "Silence is golden" status=0 exit