From: Josh Durgin <josh.durgin@dreamhost.com>
To: Sage Weil <sage@newdream.net>
Cc: ceph-devel@vger.kernel.org
Subject: Re: rbd format check
Date: Wed, 16 Nov 2011 11:04:59 -0800 [thread overview]
Message-ID: <4EC4095B.4010603@dreamhost.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1111161035050.22555@cobra.newdream.net>
On 11/16/2011 10:40 AM, Sage Weil wrote:
> On Tue, 15 Nov 2011, Josh Durgin wrote:
>> I added a simple check for the old version in the wip-rbd-layering branch of
>> ceph and ceph-client.git. If that looks good and you want to push it upstream,
>> maybe grab the rollback removal from wip-rollback as well.
>
> On the librbd side, let's add a dout(0 or 1) so that we can figure out why
> things are failing. Ideally we could use a distinct error code too so
> that the tools can report an appropriate error message, altho looking at
> errno-base.h nothing looks like an obvious choice.
I looked through errno.h as well and didn't see anything that fit very
well. Anyone have a suggestion? The ones that seem closest are EBADMSG
or EMEDIUMTYPE.
Also, the dout(0) errors don't seem to be printed unless you add the
--err-to-stderr (or stronger) flags. Shouldn't printing errors be the
default?
> For the kernel code, a pr_info or pr_warn would be good so that something
> useful up on the console. And again, a distinct error code would be nice
> so that 'rbd map ...' can print something helpful to stderr...
>
> sage
next prev parent reply other threads:[~2011-11-16 19:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4EC2EED6.9040509@dreamhost.com>
2011-11-16 18:40 ` rbd format check Sage Weil
2011-11-16 19:04 ` Josh Durgin [this message]
2011-11-16 19:10 ` Sage Weil
2011-11-16 21:34 ` Josh Durgin
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=4EC4095B.4010603@dreamhost.com \
--to=josh.durgin@dreamhost.com \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@newdream.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.