From patchwork Fri Apr 28 08:24:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9704025 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 26CA3602B7 for ; Fri, 28 Apr 2017 08:24:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1531328602 for ; Fri, 28 Apr 2017 08:24:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 081E328663; Fri, 28 Apr 2017 08:24:59 +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 96AAD28602 for ; Fri, 28 Apr 2017 08:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967983AbdD1IY6 (ORCPT ); Fri, 28 Apr 2017 04:24:58 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34962 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034747AbdD1IYp (ORCPT ); Fri, 28 Apr 2017 04:24:45 -0400 Received: by mail-wm0-f66.google.com with SMTP id d79so9443039wmi.2; Fri, 28 Apr 2017 01:24:44 -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=N+0LknNT2vlUszhZs2+End3FR2/0Tx2bb03Pj4HetO0=; b=t7FlH0uETh0LYZXdXxz4dAF63rLZiDt0eec+viFCfFzzDaXccvgCOHFe12d4l+PK73 LNjkSkumQbTXtEc6vK0RVIEEx57cnPX6qToRmm0VlOkT4vRB0M1u1BjkAXCH8WS3VC/A QGpsqta3f5zlTTo5HLekThyarzkVzQ8ZBJxsu6Z6E5tlF+xksMtIMix39qQeOxrnKRI8 axjRV+qRZSG6r8pZFW3tkhsF6JgTDBZzAMx1V/oY3iWAf8r8oyLkzem7jdaSTBr4ZlSo 2mWx9Nq0QjKKmaAGV7PM5Ny1e5mbWyL4er2wOqDvAUy0fCC7fOY7gNOUQRpPbANG9wHW bHRA== 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=N+0LknNT2vlUszhZs2+End3FR2/0Tx2bb03Pj4HetO0=; b=Ovg9n+r/ybtYskFW5eUdWmx5yyOHB9CS8ruoX9daAKDXbMl3nt2CDTzIUJkU8R8POk 0gC/zb5inmf22cS7YhYR87mIPTFIINzaKd4nSjj7AXhqcoPfYYpHogT/yXb7V3MRtuVM mBMD1BRDCyxGzR7Lg2t9QbDCi9Nd6HQRVgPWhG4HH+3/nfSnCqZLRo/g1feSdZnTqJi1 XqaexCDP8FWooEa07oxKfIXMw+eIY/xORF9CGiEnVYm9RVb9jA6EEZxN3BVgw4CG60/Y +TIJS8mRFpvw7itzcxqDsjLpTMBbHG5k6VFB7DZRXjgeMFvZdNW6qLKZjLOmuLsfJgsL t9/Q== X-Gm-Message-State: AN3rC/4KRhkZ/0utqC1Jb/siYj8w6VdTxUEq4II/L8aDfjXVjJnpOvqH d/jjKgn9cQSQkdKCGt4= X-Received: by 10.28.7.137 with SMTP id 131mr4446995wmh.49.1493367883858; Fri, 28 Apr 2017 01:24:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 01:24:43 -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 3/6] overlay/017: use af_unix to create socket test file Date: Fri, 28 Apr 2017 11:24:45 +0300 Message-Id: <1493367888-26550-4-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 Signed-off-by: Amir Goldstein --- tests/overlay/017 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/overlay/017 b/tests/overlay/017 index e04690c..779907d 100755 --- a/tests/overlay/017 +++ b/tests/overlay/017 @@ -34,6 +34,7 @@ seq=`basename $0` seqres=$RESULT_DIR/$seq echo "QA output created by $seq" +here=`pwd` tmp=/tmp/$$ status=1 # failure is the default! trap "_cleanup; exit \$status" 0 1 2 3 15 @@ -52,6 +53,7 @@ _cleanup() _supported_fs overlay _supported_os Linux _require_scratch +_require_test_program "af_unix" rm -f $seqres.full @@ -68,6 +70,7 @@ ln -s $lowerdir/file $lowerdir/symlink mknod $lowerdir/chrdev c 1 1 mknod $lowerdir/blkdev b 1 1 mknod $lowerdir/fifo p +$here/src/af_unix $lowerdir/socket _scratch_mount @@ -78,7 +81,7 @@ rm -f $tmp.* # Test stable stat(2) st_ino # Record inode numbers before and after copy up -for f in dir file symlink chrdev blkdev fifo; do +for f in dir file symlink chrdev blkdev fifo socket; do ls -id $SCRATCH_MNT/$f >> $tmp.before # chown -h modifies all those file types chown -h 100 $SCRATCH_MNT/$f