linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs device ready purpose
@ 2017-07-07 16:42 Chris Murphy
  2017-07-07 16:59 ` Andrei Borzenkov
  0 siblings, 1 reply; 13+ messages in thread
From: Chris Murphy @ 2017-07-07 16:42 UTC (permalink / raw)
  To: Btrfs BTRFS

I'm digging through piles of list emails and not really finding an
answer to this. Maybe it's Friday and I'm just confused...


[root@f26s ~]# btrfs device ready /dev/sda1
[root@f26s ~]# echo $?
0
[root@f26s ~]# btrfs device ready /dev/mapper/vg-1
[root@f26s ~]# echo $?
0


/dev/sda1 is a single device btrfs and it is present, 'btrfs fi show' finds it.
/dev/mapper/vg-1 is one member of a two device Btrfs volume, the
missing device is /dev/mapper/vg-2 and 'btrfs fi show' sees 1 but not
2 and says a device is missing.

And yet the ready command completes and the exit code is the same, and
I just don't understand the purpose of this command. The man page says
"wait" but I don't see any waiting, so at the very least we probably
need to come up with a more descriptive man page description.

Thanks.


-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-07-24  6:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-07 16:42 btrfs device ready purpose Chris Murphy
2017-07-07 16:59 ` Andrei Borzenkov
2017-07-07 17:40   ` Chris Murphy
2017-07-10 12:33     ` Austin S. Hemmelgarn
2017-07-17 15:54     ` David Sterba
2017-07-21 14:36       ` Chris Murphy
2017-07-22  5:55         ` Andrei Borzenkov
2017-07-22 17:49           ` Chris Murphy
2017-07-22 18:06             ` Chris Murphy
2017-07-22 18:15               ` Hugo Mills
2017-07-22 19:58                 ` Adam Borowski
2017-07-22 20:35                   ` Chris Murphy
2017-07-24  6:05                     ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).