From patchwork Wed Mar 20 14:29:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 2307921 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CCC2EDF24C for ; Wed, 20 Mar 2013 14:29:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316Ab3CTO3u (ORCPT ); Wed, 20 Mar 2013 10:29:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38720 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709Ab3CTO3u (ORCPT ); Wed, 20 Mar 2013 10:29:50 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 26639A4FFA for ; Wed, 20 Mar 2013 15:29:49 +0100 (CET) Received: by ds.suse.cz (Postfix, from userid 10065) id 6767DDA817; Wed, 20 Mar 2013 15:29:48 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs: cover more error codes in btrfs_decode_error Date: Wed, 20 Mar 2013 15:29:47 +0100 Message-Id: <1363789787-9787-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 1.8.1.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Signed-off-by: David Sterba --- fs/btrfs/super.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 5f21797..808648f 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -81,6 +81,12 @@ static const char *btrfs_decode_error(int errno) case -EEXIST: errstr = "Object already exists"; break; + case -ENOSPC: + errstr = "No space left"; + break; + case -ENOENT: + errstr = "No such entry"; + break; } return errstr;