[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 26, 2024 at 09:46:43AM +0000, Anthony PERARD wrote: > 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. Indeed, the wording here would be better as: "Note however that the offset in 'sector_number' must be aligned to 'sector-size' or 'discard-alignment' if present." Would you mind sending a patch to fix this? Thanks, Roger.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |