diff options
authorAnand Jain <>2013-07-26 01:35:26 +0800
committerDavid Sterba <>2013-09-03 19:40:51 +0200
commitbbe9df154b2c9bc122e1099382d1658c8cf0e904 (patch)
parent7ea01da9c878d5223886ee11859f2e91d00a69a0 (diff)
btrfs-progs: let user know that devid can be used if path is missing
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 And which can be used in the replace command. --- btrfs replace start /dev/sdc /dev/sde /btrfs Error: Unable to open device '/dev/sdc' Try using the devid instead of the path --- Signed-off-by: Anand Jain <> Signed-off-by: David Sterba <> Signed-off-by: Chris Mason <>
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-replace.c b/cmds-replace.c
index e409e11c..25e8c7fa 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",
+ fprintf(stderr, "\tTry using the devid instead of the path\n");
goto leave_with_error;
ret = fstat(fdsrcdev, &st);