[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3] blkif: reconcile protocol specification with in-use implementations
On Thu, Sep 12, 2024 at 11:57:29AM +0200, Roger Pau Monne wrote: > /* > * Cast to this structure when blkif_request.operation == BLKIF_OP_DISCARD > * sizeof(struct blkif_request_discard) <= sizeof(struct blkif_request) > + * > + * The 'sector_number' field is in units of 512b, despite the value of the > + * 'sector-size' xenstore node. Note however that the offset in > + * 'sector_number' must be aligned to 'sector-size'. For discard request, there's "discard-granularity", and I think `sector_number` should be aligned to it. See "discard-granularity" and note 4. > */ > struct blkif_request_discard { > uint8_t operation; /* BLKIF_OP_DISCARD */ Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |