Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Roger Binns <rogerb@rogerbinns.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs device ready non-success exit code
Date: Thu, 04 Jun 2015 20:04:09 -0700	[thread overview]
Message-ID: <mkr3jb$nbt$1@ger.gmane.org> (raw)
In-Reply-To: <5570DE64.5020104@oracle.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/04/2015 04:25 PM, Anand Jain wrote:
>> typically ready cli is to check disk pool status in an unmounted
>> state.

On my desktop with btrfs RAID0 on two partitions, the exit code of
ready is always 1.  On my laptop with btrfs RAID0 on two LUKS/dmcrypt
partitions the exit code is 0.  (In both cases there are / and /home
already mounted as subvolumes.)

The documentation says:

  Check device to see if it has all of it’s devices in
  cache for mounting

The semantics implied by that are that a successful return means you
can mount the device(s).  Consequently if already mounted, surely it
should return success?

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlVxEakACgkQmOOfHg372QTIKwCgwKJIqjNWJH/FMfVtm1Ktesxz
E5YAnjxMP8VyfuLPM2fmfxU8UuuyDpGi
=Axi1
-----END PGP SIGNATURE-----


      reply	other threads:[~2015-06-05  3:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 17:57 btrfs device ready non-success exit code Roger Binns
2015-06-04 23:25 ` Anand Jain
2015-06-05  3:04   ` Roger Binns [this message]

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='mkr3jb$nbt$1@ger.gmane.org' \
    --to=rogerb@rogerbinns.com \
    --cc=linux-btrfs@vger.kernel.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