From: Steffen Sledz <sledz@dresearch.de>
To: linux-kernel@vger.kernel.org
Cc: linux-mtd@lists.infradead.org,
Artem Bityutskiy <dedekind1@gmail.com>,
Steffen Sledz <sledz@dresearch.de>
Subject: [PATCH v2] ubifs: avoid kernel error if ubifs superblock read fails
Date: Mon, 27 Sep 2010 14:20:26 +0200 [thread overview]
Message-ID: <1285590026-11629-1-git-send-email-sledz@dresearch.de> (raw)
In-Reply-To: <1285577837.16181.14.camel@localhost>
* .get_sb is called on mounts with automatic fs detection too, so this
function should print an error if it cannot read the superblock in
debug mode only
(new behaviour conforms the other fs types)
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
fs/ubifs/super.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 4e5bf3f..bb6ed5d 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2054,8 +2054,8 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
*/
ubi = open_ubi(name, UBI_READONLY);
if (IS_ERR(ubi)) {
- ubifs_err("cannot open \"%s\", error %d",
- name, (int)PTR_ERR(ubi));
+ dbg_err("cannot open \"%s\", error %d",
+ name, (int)PTR_ERR(ubi));
return PTR_ERR(ubi);
}
ubi_get_volume_info(ubi, &vi);
--
1.7.1
next prev parent reply other threads:[~2010-09-27 12:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 9:54 [PATCH] " Steffen Sledz
2010-09-27 8:57 ` Artem Bityutskiy
2010-09-27 12:20 ` Steffen Sledz [this message]
2010-09-28 6:49 ` [PATCH v2] " Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285590026-11629-1-git-send-email-sledz@dresearch.de \
--to=sledz@dresearch.de \
--cc=dedekind1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®