Re: datalog including written data?
Hi Manfred,
On Mon, Dec 20, 2021 at 05:48:35PM +0100, Manfred Spraul wrote:
> 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?
Not me.
> 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?
Yes, that might be nice. nbd-trdump hasn't been looked at in a while,
which is why TRIM and WRITE_ZEROES haven't been added to it yet.
Thanks for your effort,
--
w@uter.{be,co.za}
wouter@{grep.be,fosdem.org,debian.org}
Reply to: