On 30/10/2014 22:33, David Sterba wrote:
On Wed, Oct 15, 2014 at 08:51:09AM +0800, Anand Jain wrote:
--- a/volumes.c
+++ b/volumes.c
@@ -30,6 +30,7 @@
#include "print-tree.h"
#include "volumes.h"
#include "math.h"
+#include "utils.h"
struct stripe {
struct btrfs_device *dev;
@@ -1533,6 +1534,30 @@ btrfs_find_device_by_devid(struct btrfs_fs_devices
*fs_devices,
return NULL;
}
+/*
+ * Register all devices in the fs_uuid list created in the user
+ * space. Ensure btrfs_scan_lblkid() is called before this func.
+ */
+int btrfs_register_all_devices(void)
I think this belongs to utils.c, btrfs_register_one_device is also there
and it is an API funcion for the commands. You can use
btrfs_scanned_uuids() to get to the fs_uuids variable that's locally
defined in volumes.c .
wonderful comment. Thanks. V4 is sent out.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html