From: "Lakshmipathi.G" <Lakshmipathi.G@giis.co.in>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH]btrfs-progs: Add fast,slow symlinks and fifo types to convert test
Date: Thu, 15 Sep 2016 11:34:07 +0200 [thread overview]
Message-ID: <20160915093407.GA17835@fedori> (raw)
Signed-off-by: Lakshmipathi.G <Lakshmipathi.G@giis.co.in>
---
tests/common.convert | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/tests/common.convert b/tests/common.convert
index 67c99b1..2790be5 100644
--- a/tests/common.convert
+++ b/tests/common.convert
@@ -25,10 +25,10 @@ generate_dataset() {
done
;;
- symlink)
+ fast_symlink)
for num in $(seq 1 $DATASET_SIZE); do
run_check $SUDO_HELPER touch $dirpath/$dataset_type.$num
- run_check $SUDO_HELPER ln -s $dirpath/$dataset_type.$num $dirpath/slink.$num
+ run_check $SUDO_HELPER cd $dirpath && ln -s $dataset_type.$num $dirpath/slink.$num && cd /
done
;;
@@ -71,12 +71,24 @@ generate_dataset() {
run_check $SUDO_HELPER setfattr -n user.foo -v bar$num $dirpath/$dataset_type.$num
done
;;
+ fifo)
+ for num in $(seq 1 $DATASET_SIZE); do
+ run_check $SUDO_HELPER mkfifo $dirpath/$dataset_type.$num
+ done
+ ;;
+ slow_symlink)
+ for num in $(seq 1 $DATASET_SIZE); do
+ fname64=`date +%s | sha256sum | cut -f1 -d'-'`
+ run_check $SUDO_HELPER touch $dirpath/$fname64
+ run_check $SUDO_HELPER ln -s $dirpath/$fname64 $dirpath/slow_slink.$num
+ done
+ ;;
esac
}
populate_fs() {
- for dataset_type in 'small' 'hardlink' 'symlink' 'brokenlink' 'perm' 'sparse' 'acls'; do
+ for dataset_type in 'small' 'hardlink' 'fast_symlink' 'brokenlink' 'perm' 'sparse' 'acls' 'fifo' 'slow_symlink'; do
generate_dataset "$dataset_type"
done
}
--
1.9.3
next reply other threads:[~2016-09-15 9:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 9:34 Lakshmipathi.G [this message]
2016-09-19 17:05 ` [PATCH]btrfs-progs: Add fast,slow symlinks and fifo types to convert test David Sterba
2016-09-20 16:03 ` lakshmipathi.g
[not found] ` <89977db3-aae4-01d1-62a2-34011e0227f8@cn.fujitsu.com>
2016-09-20 16:06 ` lakshmipathi.g
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=20160915093407.GA17835@fedori \
--to=lakshmipathi.g@giis.co.in \
--cc=linux-btrfs@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.