From patchwork Mon Feb 26 14:08:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiping zhang X-Patchwork-Id: 10242399 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8F1D5602DC for ; Mon, 26 Feb 2018 14:09:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8003F2A026 for ; Mon, 26 Feb 2018 14:09:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7440E2A033; Mon, 26 Feb 2018 14:09:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F9A82A026 for ; Mon, 26 Feb 2018 14:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753027AbeBZOI7 (ORCPT ); Mon, 26 Feb 2018 09:08:59 -0500 Received: from mx2.didichuxing.com ([36.110.17.22]:11107 "EHLO BJEXCAS004.didichuxing.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751825AbeBZOI7 (ORCPT ); Mon, 26 Feb 2018 09:08:59 -0500 Received: from localhost.didichuxing.com (172.22.50.20) by BJSGEXMBX03.didichuxing.com (172.20.15.133) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 26 Feb 2018 22:08:39 +0800 Date: Mon, 26 Feb 2018 22:08:28 +0800 From: Weiping Zhang To: , CC: Subject: [PATCH] scsi:Documentation: add sd-parameters.txt Message-ID: <20180226140758.GA26422@localhost.didichuxing.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [172.22.50.20] X-ClientProxiedBy: BJEXCAS004.didichuxing.com (172.20.1.44) To BJSGEXMBX03.didichuxing.com (172.20.15.133) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP this document include SCSI disk and SCSI device parameters, add cache_type firstly, other parameters will be added later. Signed-off-by: Weiping Zhang --- Documentation/scsi/sd-parameters.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/scsi/sd-parameters.txt diff --git a/Documentation/scsi/sd-parameters.txt b/Documentation/scsi/sd-parameters.txt new file mode 100644 index 0000000..88ea9a2 --- /dev/null +++ b/Documentation/scsi/sd-parameters.txt @@ -0,0 +1,23 @@ +Linux SCSI sd Parameters +============================================================ + +scsi disk +---------------------------------------- +Path: /sys/block/sdx/device/scsi_disk/x:x:x:x/* + +* Name: cache_type +* Description: enable/disable write&read cache + +Encoding | WCE RCD | Write_cache Read_cache +------------------------------------------------------------- +write through | 0 0 | off on +none | 0 1 | off off +write back | 1 0 | on on +write back, no read (daft) | 1 1 | on off + +For "temporary", it only change request_queue's flag, not send +any command to disk, so actually disk'cache doesn't changed yet. + +* Usage: +echo "write back" > cache_type +echo "temporary write back" > cache_type