[DragonFlyBSD - Submit #2844] (New) [PATCH] sys/dev/disk/dm: Add dm-delay target [v1]
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Wed Oct 7 08:04:19 PDT 2015
Issue #2844 has been reported by tkusumi.
----------------------------------------
Submit #2844: [PATCH] sys/dev/disk/dm: Add dm-delay target [v1]
http://bugs.dragonflybsd.org/issues/2844
* Author: tkusumi
* Status: New
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
This is v1 of the new Device Mapper target dm-delay.
https://www.dragonflybsd.org/~tkusumi/diff/0001-sys-dev-disk-dm-Add-dm-delay-target-v1.patch
dm-delay has existed in Linux kernel,
and this is the dm-delay target for DragonFly based on
the Device Mapper code originally ported from NetBSD.
examples
=====
# newfs_hammer -L TEST /dev/da3 > /dev/null
# mount_hammer /dev/da3 /HAMMER
# hammer volume-list /HAMMER
/dev/da3
# cd /HAMMER
# time git clone /usr/local/src/dragonfly
Cloning into 'dragonfly'...
done.
Checking out files: 100% (34298/34298), done.
git clone /usr/local/src/dragonfly 2.88s user 4.26s system 48% cpu 14.577 total
=====
# newfs_hammer -L TEST /dev/da3 > /dev/null
# kldload dm
# dmsetup create delay1 --table '0 234436482 delay /dev/da3 0 10 /dev/da3 0 10'
# dmsetup ls --tree
delay1 (255:504430599)
`- (0:504430623)
# mount_hammer /dev/mapper/delay1 /HAMMER
# hammer volume-list /HAMMER
/dev/mapper/delay1
# cd /HAMMER
# time git clone /usr/local/src/dragonfly
Cloning into 'dragonfly'...
done.
Checking out files: 100% (34298/34298), done.
git clone /usr/local/src/dragonfly 2.78s user 3.91s system 5% cpu 2:05.05 total
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Submit
mailing list