btrfs_subvolume_snapshot
Description:
[ Version ( since = "1.17.35" ) ]
public bool btrfs_subvolume_snapshot (string source, string dest, BTRFSSubvolumeSnapshot? optargs) throws Error
public bool btrfs_subvolume_snapshot (string source, string dest, BTRFSSubvolumeSnapshot? optargs) throws Error
create a btrfs snapshot
Create a snapshot of the btrfs subvolume source
. The dest
argument is the destination directory and the name of the
snapshot, in the form /path/to/dest/name. By default the newly created snapshot is writable, if the value of optional parameter ro
is true, then a readonly snapshot is created. The optional parameter qgroupid
represents the qgroup which the newly created
snapshot will be added to.
This function depends on the feature "btrfs". See also feature_available.
Parameters:
this |
A GuestfsSession object |
optargs |
a GuestfsBTRFSSubvolumeSnapshot containing optional arguments |
Returns:
true on success, false on error |