[libvirt] [PATCH v5 1/5] Introduce virDomainFSFreeze() and virDomainFSThaw() public API

Eric Blake eblake at redhat.com
Fri Apr 4 12:15:05 UTC 2014


On 04/04/2014 02:51 AM, Daniel P. Berrange wrote:
> On Thu, Apr 03, 2014 at 11:39:29AM -0400, Tomoki Sekiyama wrote:
>> These will freeze and thaw filesystems within guest. The APIs take @disks
>> and @ndisks parameters to specify disks to be frozen or thawed.
>> The parameters can be NULL and 0, then the all mounted filesystes are
>> frozen or thawed. If some disks are frozen multiple times, they are not
>> thawed until requested to be thawed as many times as freeze request.
>> @flags parameter, which are currently not used, is for future extensions.
>>

>> +int virDomainFSThaw(virDomainPtr dom,
>> +                    const char **disks,
>> +                    unsigned int ndisks,
>> +                    unsigned int flags);
> 
> Are all guests OS required to support unfreeze on a per disk
> basis. I vaguely recall someone mentioning that some OS can
> do all-or-none only.

If that's the case, the command can issue an error if disks is non-NULL
but the guest agent required an all-or-none operation.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140404/95ff7209/attachment-0001.sig>


More information about the libvir-list mailing list