From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <eguan@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>, Xiong Zhou <xzhou@redhat.com>,
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 [thread overview]
Message-ID: <1493305775-12559-3-git-send-email-amir73il@gmail.com> (raw)
In-Reply-To: <1493305775-12559-1-git-send-email-amir73il@gmail.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
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
--
2.7.4
next prev parent reply other threads:[~2017-04-27 15:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 15:09 [PATCH 0/5] fstests: more tests for overlay constant inode numbers Amir Goldstein
2017-04-27 15:09 ` [PATCH 1/5] overlay/017: silence test output Amir Goldstein
2017-04-28 5:36 ` Eryu Guan
2017-04-28 5:45 ` Amir Goldstein
2017-04-28 5:50 ` Eryu Guan
2017-04-28 6:34 ` Amir Goldstein
2017-04-28 6:50 ` Eryu Guan
2017-04-27 15:09 ` Amir Goldstein [this message]
2017-04-27 15:09 ` [PATCH 3/5] overlay/017: create a helper to record inode number Amir Goldstein
2017-04-27 15:09 ` [PATCH 4/5] overlay/017: verify constant inode number after rename Amir Goldstein
2017-04-28 5:47 ` Eryu Guan
2017-04-28 5:50 ` Amir Goldstein
2017-04-27 15:09 ` [PATCH 5/5] overlay/017: test persistent inode numbers after mount cycle Amir Goldstein
2017-04-28 5:30 ` [PATCH 0/5] fstests: more tests for overlay constant inode numbers Eryu Guan
2017-04-28 5:39 ` Amir Goldstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1493305775-12559-3-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=xzhou@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox