Re: btrfs device ready non-success exit code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux