On Mon, Sep 09, 2024 at 07:34:45PM +0800, Changqi Lu wrote: > +static int coroutine_fn GRAPH_RDLOCK > +raw_co_pr_register(BlockDriverState *bs, uint64_t old_key, > + uint64_t new_key, BlockPrType type, > + bool ptpl, bool ignore_key) > +{ > + return bdrv_co_pr_register(bs->file->bs, old_key, new_key, > + type, ptpl, ignore_key); > +}
The nvme parts look fine, but could you help me understand how this all works? I was looking for something utilizing ioctl's, like IOC_PR_REGISTER for this one, chained through the file-posix block driver. Is this only supposed to work with iscsi?