----- Original Message ----- > From: "Huaicheng Li" <lhc...@gmail.com> > I’m trying to add some latency conditionally to I/O requests (qemu_paiocb, > from **IDE** disk emulation, **raw** image file).
Paolo already covered the technical issue with what you're doing. Have you seen Linux Documentation/device-mapper/delay.txt? You could set up a loopback block device and put the device-mapper delay target on top to simulate latency. Stefan