[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

datalog including written data?



Hello together,

for a stress test application, I would like to extend the datalog to include the actual written data.

The use case is to replay parts of the log, similar to what I wrote for a NAND driver a few years ago:

https://patchwork.ozlabs.org/project/linux-mtd/cover/20171206085039.27164-1-dirk.behme@de.bosch.com/

a) Has anyone done that before?

b) As first observation:

https://github.com/NetworkBlockDevice/nbd/blob/master/nbd-server.c#L294

The server supports

NBD_CMD_READ, NBD_CMD_WRITE, NBD_CMD_DISC, NBD_CMD_FLUSH, NBD_CMD_TRIM, NBD_CMD_WRITE_ZEROES

https://github.com/NetworkBlockDevice/nbd/blob/master/nbd-trdump.c#L71

The trace dump utility supports

NBD_CMD_READ, NBD_CMD_WRITE, NBD_CMD_DISC, NBD_CMD_FLUSH

-> TRIM and WRITE_ZEROES is missing.


Should I create a patch that adds TRIM and WRITE_ZEROES to nbd-trdump?


--

    Manfred


Reply to: