From patchwork Tue Sep 10 15:46:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 2866891 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 35E2FBF43F for ; Tue, 10 Sep 2013 15:46:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69CDA20201 for ; Tue, 10 Sep 2013 15:46:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BC7F201F8 for ; Tue, 10 Sep 2013 15:46:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629Ab3IJPqn (ORCPT ); Tue, 10 Sep 2013 11:46:43 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:59921 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490Ab3IJPqm (ORCPT ); Tue, 10 Sep 2013 11:46:42 -0400 Received: by mail-pa0-f53.google.com with SMTP id lb1so7838106pab.40 for ; Tue, 10 Sep 2013 08:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=oG1ZyoBEjTN+5p6BOq6iQWHX3rjWzXW6hSXzySuIfZw=; b=Cx1OkksIcZQtuz4Xggxg5gYYbLuqROn8b4ab+2ijDZT4VD0X6bNxXxLgAizJFrNsQe ttGlwlwPM1/5IfBVC2GdiHqM2IDvR1VuXRtw6acc1KXPSJlxc38Glykp1ueG7xSTDQyH E6YQMw8owwihw6XdYU7BNizKYtZEi9Xlq1RlpflN2qvSP+0qsw1XJ8w0PkZ6xZeXbpDR lb13fFkIBSLJYrZGZqyV1dC6PoeK9VPO/5r5ZF6cHEEva4qq1RoxOZYFcKDFOdrWBVd7 jz8wdJLBnt/KnigfHn2w3DDcGeOIH9NYPrsLU8P3BZU2U01a5oyiaZWSxnKroKjM+WV0 ugTw== X-Received: by 10.68.238.34 with SMTP id vh2mr26089527pbc.101.1378828001809; Tue, 10 Sep 2013 08:46:41 -0700 (PDT) Received: from localhost.localdomain.localdomain ([112.2.80.183]) by mx.google.com with ESMTPSA id gh9sm23770816pbc.40.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 08:46:41 -0700 (PDT) From: Wang Shilong To: linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs: fix typo in btrfs_err_str() Date: Tue, 10 Sep 2013 23:46:36 +0800 Message-Id: <1378827996-1305-1-git-send-email-wangshilong1991@gmail.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Wang Shilong raid5 and raid6 at least need three and four devices respectively, fix it. Signed-off-by: Wang Shilong --- include/uapi/linux/btrfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 45e6189..1e65895 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h @@ -495,9 +495,9 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code) case BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET: return "unable to go below four devices on raid10"; case BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET: - return "unable to go below two devices on raid5"; + return "unable to go below three devices on raid5"; case BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET: - return "unable to go below three devices on raid6"; + return "unable to go below four devices on raid6"; case BTRFS_ERROR_DEV_TGT_REPLACE: return "unable to remove the dev_replace target dev"; case BTRFS_ERROR_DEV_MISSING_NOT_FOUND: