[ Version ( since = "1.29.48" ) ]
public bool btrfs_replace (string srcdev, string targetdev, string mntpoint) throws Error
replace a btrfs managed device with another device
Replace device of a btrfs filesystem. On a live filesystem, duplicate the data to the target device which is currently stored on the source device. After completion of the operation, the source device is wiped out and removed from the filesystem.
The targetdev
needs to be same size or larger than the srcdev
. Devices which are currently mounted are never
allowed to be used as the targetdev
.
This function depends on the feature "btrfs". See also feature_available .
this |
A GuestfsSession object |
true on success, false on error |