Re: [Nbd] [PATCH v2 2/2] nbd: map DISCARD requests to a new nbdrequest type

From: Alex Bligh
Date: Thu Sep 08 2011 - 04:51:26 EST


Paolo,

--On 8 September 2011 09:44:58 +0200 Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:

When the feature is enabled, set QUEUE_FLAG_DISCARD and transmit those as
NBD_CMD_TRIM requests.

I used "trim" instead of "discard" to avoid confusion with the existing
NBD_CMD_DISC that is used for disconnect.

Cc: Paul Clements <Paul.Clements@xxxxxxxxxxxx>
Cc: <nbd-general@xxxxxxxxxxxx>
Reviewed-by: Paul Clements <Paul.Clements@xxxxxxxxxxxx>
Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Do you have a patch for doc/proto.txt in the NBD protocol, or indeed
a patch for the server to implement this?

--
Alex Bligh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/