linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] A way to tell if all the devices in a file system are available
@ 2012-06-21 20:10 Josef Bacik
  2012-06-21 20:10 ` [PATCH] Btrfs: add DEVICE_READY ioctl Josef Bacik
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Josef Bacik @ 2012-06-21 20:10 UTC (permalink / raw)
  To: linux-btrfs, harald

Harald Hoyer has had this as a feature request for ages and I've finally gotten
around to hacking something up.  This is probably going to get bikeshedded to
death, bring it on, I'm not married to any of the behaviors in these patches, I
just want to get the ball rolling so we can have something in place for 3.6.

Basically all I've done is saved how many devices the super block thinks we have
into the fs_devices struct whenever we scan a device.  Then all we have to do
for the IOCTL is compare how many devices the fs_devices struct has in it to how
many we think we need.

The command itself just spits out 0 for yay we're ready and 1 for boo no we're
not.  This makes it easier for Harald to do his multi-device btrfs support in
dracut.  Thanks,

Josef

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

end of thread, other threads:[~2012-07-17 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 20:10 [RFC] A way to tell if all the devices in a file system are available Josef Bacik
2012-06-21 20:10 ` [PATCH] Btrfs: add DEVICE_READY ioctl Josef Bacik
2012-06-22 18:12   ` Goffredo Baroncelli
2012-07-17 11:53     ` David Sterba
2012-07-17 17:17       ` Goffredo Baroncelli
2012-06-21 20:10 ` [PATCH] Btrfs-progs: add btrfs device ready command Josef Bacik
2012-06-22 17:20   ` Goffredo Baroncelli
2012-06-22 10:33 ` [RFC] A way to tell if all the devices in a file system are available Harald Hoyer
2012-07-10 17:35 ` Harald Hoyer

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