Re: [RESEND PATCH blktrace v3 08/20] blkparse: read 'magic' first

Damien Le Moal <[email protected]> Mon, 24 Nov 2025 18:03:02 +0900
Newsgroups org.kernel.vger.linux-btrace,org.kernel.vger.linux-block
Organization Western Digital Research
Message-ID <[email protected]>
On 2025/11/24 16:37, Johannes Thumshirn wrote:
> Read the 'magic' portion of 'struct blk_io_trace' first when reading the
> tracefile and only if all magic checks succeed, read the rest of the
> trace.
> 
> This is a preparation of supporting multiple trace protocol versions.
> 
> Signed-off-by: Johannes Thumshirn <[email protected]>

Reviewed-by: Damien Le Moal <[email protected]>

-- 
Damien Le Moal
Western Digital Research