git: sys/dev/disk/dm: Add dm-delay target

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 10 05:46:05 PDT 2015


commit 591464210d5f2108d1a6cadbcf115e7c4083a2fd
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Oct 3 03:01:38 2015 +0900

    sys/dev/disk/dm: Add dm-delay target
    
    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

Summary of changes:
 sys/conf/files                                  |   1 +
 sys/config/LINT64                               |   1 +
 sys/dev/disk/dm/dm.h                            |   1 +
 sys/dev/disk/dm/targets/Makefile                |   2 +-
 sys/dev/disk/dm/targets/delay/Makefile          |   5 +
 sys/dev/disk/dm/targets/delay/dm_target_delay.c | 493 ++++++++++++++++++++++++
 6 files changed, 502 insertions(+), 1 deletion(-)
 create mode 100644 sys/dev/disk/dm/targets/delay/Makefile
 create mode 100644 sys/dev/disk/dm/targets/delay/dm_target_delay.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/591464210d5f2108d1a6cadbcf115e7c4083a2fd


-- 
DragonFly BSD source repository


More information about the Commits mailing list