From patchwork Thu May 11 06:55:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9721035 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 6901360364 for ; Thu, 11 May 2017 06:55:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 644582865A for ; Thu, 11 May 2017 06:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5906D2866C; Thu, 11 May 2017 06:55:10 +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 102192865A for ; Thu, 11 May 2017 06:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763AbdEKGzJ (ORCPT ); Thu, 11 May 2017 02:55:09 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34554 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754757AbdEKGzH (ORCPT ); Thu, 11 May 2017 02:55:07 -0400 Received: by mail-wr0-f196.google.com with SMTP id 6so2108309wrb.1; Wed, 10 May 2017 23:55:06 -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=EbB8mjyVMEBK6DPPr05/UMYgVTplihyp1RXs5Hky7vI=; b=QkI/UMbAiI+7lG/cCBPwTF22kiVMDidw/ReYChYdLSspyBolSNmhLiXb1RTRk4KzMA +pLiY6kSEWpfeS2jz1nCI4Bo5NpqXpWkwxZHxb1HdtA3duX2y37W6B2HIDx0IZRs7OYN wd3thIZ37XlufnuSkYqUgRC91hC8g23M/zhf6EbB/0JbYfuTLkKiWcehlLPzYE4Y/BIY 7dNIUp28oQMI+FFN1I9mEjrvcVxNX14bE/3MxETwkqJ3BMutCLvYu60/cPHtW7K+C4E6 xdScqklUc9osF97+NLNW69srxT60AGVBCtZvsq0zLFw6OPnQMWYnzQiFTMljOLxzP5a8 hh3A== 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=EbB8mjyVMEBK6DPPr05/UMYgVTplihyp1RXs5Hky7vI=; b=rHfVbhwPdW8Ry2SAQ8Vau//6iqYOduHW1TAVs4IkLIW+zwksTNFW+7nyktiCcm7J/3 T/gUUQCmGrfZgvh4WRyru6rH+uvEtp29qcBdeE+CHF40Fczd2gInaHHrcpq89Ddt+6aD K47xQlwT/fwDQqs4uNdCkal49O2HaXAK19JlSgoqOhgNy00RqhlFn0ZZ02QnwEgeSga/ iHX0SrAY62lg5GhBoDWGKvH1qRo47m1Yew/No5K6+1fZ9cPPh/YHpghWhJ6b4NAlBC+o F9ByuHhcbcRiSnU7ryYbO4LLPj+CGC/S921CeD/58iwrL6TtZAlsCvNnqIWQHciZfONX WFlg== X-Gm-Message-State: AODbwcBq6crkxgDQz2qgbsX74yPoJg7hm79N36fvyGL/NfYsQy6E148g r45RQHHz5EkwxA== X-Received: by 10.223.172.105 with SMTP id v96mr7021532wrc.1.1494485700557; Wed, 10 May 2017 23:55:00 -0700 (PDT) Received: from amir-VirtualBox.ctera.local (bzq-166-168-31-246.red.bezeqint.net. [31.168.166.246]) by smtp.gmail.com with ESMTPSA id j126sm1281825wmd.29.2017.05.10.23.54.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 May 2017 23:55:00 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , Xiong Zhou , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH 3/4] overlay/017: test consistent st_ino/d_ino for hardlinks Date: Thu, 11 May 2017 09:55:09 +0300 Message-Id: <1494485710-2400-4-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494485710-2400-1-git-send-email-amir73il@gmail.com> References: <1494485710-2400-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 Currently hardlinks do not preserve the inode number across copy up, so hardlinks did not participate in this test so far. Stay honest and let the test verify what is was meant to verify and let it fail because of the fact that hardlinks inode numbers are not constant across copy up. Signed-off-by: Amir Goldstein --- tests/overlay/017 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/overlay/017 b/tests/overlay/017 index bb467f7..e9c8525 100755 --- a/tests/overlay/017 +++ b/tests/overlay/017 @@ -63,8 +63,6 @@ rm -f $seqres.full _scratch_mkfs >>$seqres.full 2>&1 # Create our test files. -# Not dealing with hardlinks here, when hardlinks are broken they -# should not preserve the inode number. lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER mkdir -p $lowerdir mkdir $lowerdir/dir @@ -74,8 +72,10 @@ mknod $lowerdir/chrdev c 1 1 mknod $lowerdir/blkdev b 1 1 mknod $lowerdir/fifo p $here/src/af_unix $lowerdir/socket +touch $lowerdir/hardlink1 +ln $lowerdir/hardlink1 $lowerdir/hardlink2 -FILES="dir file symlink chrdev blkdev fifo socket" +FILES="dir file symlink chrdev blkdev fifo socket hardlink1 hardlink2" # Record inode numbers in format function record_inode_numbers()