btrfs-device-delete: Use correct (sysroot-prefixed) path to filesystem.

This fixes commit 87ea7a0409.
This commit is contained in:
Richard W.M. Jones
2012-04-25 19:08:56 +01:00
parent 87ea7a0409
commit e188eb8268
2 changed files with 4 additions and 4 deletions

View File

@@ -582,9 +582,11 @@ do_btrfs_device_delete (char *const *devices, const char *fs)
ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "device");
ADD_ARG (argv, i, "delete");
for (j = 0; j < nr_devices; ++j)
ADD_ARG (argv, i, devices[j]);
ADD_ARG (argv, i, fs);
ADD_ARG (argv, i, fs_buf);
ADD_ARG (argv, i, NULL);
r = commandv (NULL, &err, argv);

View File

@@ -48,9 +48,7 @@ mkdir /foo
touch /foo/bar
btrfs-device-add "/dev/sdc1 /dev/sdd1" /
# I cannot get this to work, seems to be a btrfs bug:
#btrfs-device-delete "/dev/sda1 /dev/sdb1" /
btrfs-device-delete "/dev/sda1 /dev/sdb1" /
EOF