mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
btrfs-device-delete: Use correct (sysroot-prefixed) path to filesystem.
This fixes commit 87ea7a0409.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user