From patchwork Mon Mar 28 10:43:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Denis V. Lunev" X-Patchwork-Id: 8678941 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EA0C9C0553 for ; Mon, 28 Mar 2016 10:44:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55A502027D for ; Mon, 28 Mar 2016 10:44:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94E3020279 for ; Mon, 28 Mar 2016 10:44:06 +0000 (UTC) Received: from localhost ([::1]:40148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akUeU-0007kN-2l for patchwork-qemu-devel@patchwork.kernel.org; Mon, 28 Mar 2016 06:44:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akUeE-0007WA-4v for qemu-devel@nongnu.org; Mon, 28 Mar 2016 06:43:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akUeB-0002c5-G0 for qemu-devel@nongnu.org; Mon, 28 Mar 2016 06:43:50 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:23030 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akUeB-0002an-3o for qemu-devel@nongnu.org; Mon, 28 Mar 2016 06:43:47 -0400 Received: from irbis.sw.ru ([10.30.2.139]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id u2SAhIO1030189; Mon, 28 Mar 2016 13:43:28 +0300 (MSK) From: "Denis V. Lunev" To: nbd-general@lists.sourceforge.net, qemu-devel@nongnu.org Date: Mon, 28 Mar 2016 13:43:18 +0300 Message-Id: <1459161798-32120-4-git-send-email-den@openvz.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459161798-32120-1-git-send-email-den@openvz.org> References: <1459161798-32120-1-git-send-email-den@openvz.org> X-detected-operating-system: by eggs.gnu.org: OpenBSD 3.x X-Received-From: 195.214.232.25 Cc: den@openvz.org, Pavel Borzenkov , Alex Bligh , Wouter Verhelst Subject: [Qemu-devel] [PATCH 3/3] NBD proto: add "Command flags" section X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pavel Borzenkov Add separate "Command flags" section to make it clear which flags are currently defined by the protocol. Signed-off-by: Pavel Borzenkov Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Wouter Verhelst CC: Eric Blake CC: Alex Bligh --- doc/proto.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/proto.md b/doc/proto.md index 036d6d9..662f741 100644 --- a/doc/proto.md +++ b/doc/proto.md @@ -485,6 +485,16 @@ The following request types exist: Currently one such message is known: `NBD_CMD_CACHE`, with type set to 5, implemented by xnbd. +#### Command flags + +This field of 16 bits is sent by the client with every request and provides +additional information to the server to execute the command. Refer to +aforementioned "Request types" section for information about the flags +supported by particular commands. + +- bit 0, `NBD_CMD_FLAG_FUA`; should be set to 1 if the client requires + "Force Unit Access" mode of operation + #### Error values The error values are used for the error field in the reply message.