]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: support dm-delay to introduce I/O delays
authorBrian Foster <bfoster@redhat.com>
Thu, 30 Jun 2016 12:49:33 +0000 (08:49 -0400)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:49 +0000 (23:12 +0800)
commit781fc5b91f6e30744f80b4c8a2eea858e8556239
treea82dce21a4321cb0e11480e745c8f88bb3e42001
parenta1c4e17d4a9531fb160921755376d1b0dbe48765
common: support dm-delay to introduce I/O delays

Add some infrastructure in common/dmdelay to support use of the
dm-delay device-mapper module within tests. This is effectively
copied from the existing infrastructure in common/dmflakey. This
provides the ability to delay I/O. It only supports delaying read
I/O as that is all that is required at this point in time.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/dmdelay [new file with mode: 0644]