When the device disappear the path goes missing,
and that will be the one of the reason that user
will replace the device.

The devid of the missing btrfs device can be
obtained using the new cli option
 btrfs fi show --kernel (coming soon)

And which can be used in the replace command.
---
 cmds-replace.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cmds-replace.c b/cmds-replace.c
index e409e11..25e8c7f 100644
--- a/cmds-replace.c
+++ b/cmds-replace.c
@@ -245,6 +245,7 @@ static int cmd_start_replace(int argc, char **argv)
                if (fdsrcdev < 0) {
                        fprintf(stderr, "Error: Unable to open device '%s'\n",
                                srcdev);
+                       fprintf(stderr, "\tTry using the devid instead of the 
path\n");
                        goto leave_with_error;
                }
                ret = fstat(fdsrcdev, &st);
-- 
1.7.1

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

Reply via email to