From patchwork Thu Apr 27 15:09:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9703007 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 95DFE6032C for ; Thu, 27 Apr 2017 15:09:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 964AF285EA for ; Thu, 27 Apr 2017 15:09:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AEF228655; Thu, 27 Apr 2017 15:09:34 +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 29667285EA for ; Thu, 27 Apr 2017 15:09:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932278AbdD0PJd (ORCPT ); Thu, 27 Apr 2017 11:09:33 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34803 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932150AbdD0PJd (ORCPT ); Thu, 27 Apr 2017 11:09:33 -0400 Received: by mail-wr0-f194.google.com with SMTP id 6so4126670wrb.1; Thu, 27 Apr 2017 08:09:31 -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=jrUvqEp69mIDu/n5PIF3NmjaLVAzFPEo7nWKzSBwqHQ=; b=VQ20I0I0UMjcjBZYf637U7Tn4kqUbbKCpPDWJVdqCnQlPTE+ys6p3MAJGxzN2qM4sN z1767JQwcolPg3f2rMiPI1rQCrqPHUx5/28G30lmb2Ly4PAY2tc55c8Qt4anVBOx2cLr gFV7KDcMx+GFVBFjkr7z98VUSkMEjmF7bTlPgzL9ms9y660FffJjDYwQx9ZexNBZD6zd yJBdSqpaKC/CT0oMV9WtQ3qVQhrmZf2mLUzHoYzRo/VdFyrTCbngHvgymv2ChjFqbGU+ F0G3FbDPi1OJNsIzQBP2PrhAeJ7FDMPO9rb1e9xvTehHuEieSyL4hyMiMkgcqqsrrA9T /z0A== 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=jrUvqEp69mIDu/n5PIF3NmjaLVAzFPEo7nWKzSBwqHQ=; b=SMR2WPk19iZiUd0DLOa2oQuuLEZ+xPcSogGUoCDowrDseJurOXoeNR4ms7oDiqL4VY ZxEGE6ahEyOCa4AON4YaF/aX+YwfOpEo+Z0RfXW5dwNH4SkyX5omcK7ZupWXSz5MGqIx FQ8O0SydzteGu5ojF9Ly07Bhp0IBRFkXY5HHuqWCBmIBGPuv1m4H8owfjpiCjRGm3XnF 21oG3GqgGV2LtQEiTiTytiEiZPtFQD9BsSya5eerSgf/vFZiwIZJKHGa5LfgznYPU4eV wsDg7XRnwlH4yXvHRtd7WlCKLxPSXSI1woCTjX1WsUtIB+87fYbmqQiGxptzAk5WWKFK G3Nw== X-Gm-Message-State: AN3rC/4ID5H0Mv9p9ikrYqJPHkfiYYsjRZkQBbRz8ci7FZfG3FQv989c eiO14JsJOJwt5Q== X-Received: by 10.223.131.67 with SMTP id 61mr3351484wrd.37.1493305771060; Thu, 27 Apr 2017 08:09:31 -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 p17sm3519265wmd.11.2017.04.27.08.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Apr 2017 08:09:30 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , Xiong Zhou , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH 2/5] overlay/017: use af_unix to create socket test file Date: Thu, 27 Apr 2017 18:09:32 +0300 Message-Id: <1493305775-12559-3-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493305775-12559-1-git-send-email-amir73il@gmail.com> References: <1493305775-12559-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 d6ba2ae..66a028f 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 @@ -51,6 +52,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.before $tmp.after # 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