mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
remote: Implement virDomainFSTrim
A new rule to fixup_name() in gendispatch.pl needs to be added, otherwise we are left with remoteDomainFstrim which is not wanted.
This commit is contained in:
parent
0fbf3704fd
commit
bcbe646d92
@ -6145,6 +6145,7 @@ static virDriver remote_driver = {
|
||||
.nodeSetMemoryParameters = remoteNodeSetMemoryParameters, /* 0.10.2 */
|
||||
.nodeGetMemoryParameters = remoteNodeGetMemoryParameters, /* 0.10.2 */
|
||||
.nodeGetCPUMap = remoteNodeGetCPUMap, /* 1.0.0 */
|
||||
.domainFSTrim = remoteDomainFSTrim, /* 1.0.1 */
|
||||
};
|
||||
|
||||
static virNetworkDriver network_driver = {
|
||||
|
@ -2682,6 +2682,13 @@ struct remote_node_get_cpu_map_ret {
|
||||
int ret;
|
||||
};
|
||||
|
||||
struct remote_domain_fstrim_args {
|
||||
remote_nonnull_domain dom;
|
||||
remote_string mountPoint;
|
||||
unsigned hyper minimum;
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
/*----- Protocol. -----*/
|
||||
|
||||
/* Define the program number, protocol version and procedure numbers here. */
|
||||
@ -3026,7 +3033,8 @@ enum remote_procedure {
|
||||
|
||||
REMOTE_PROC_NETWORK_UPDATE = 291, /* autogen autogen priority:high */
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292, /* autogen autogen */
|
||||
REMOTE_PROC_NODE_GET_CPU_MAP = 293 /* skipgen skipgen */
|
||||
REMOTE_PROC_NODE_GET_CPU_MAP = 293, /* skipgen skipgen */
|
||||
REMOTE_PROC_DOMAIN_FSTRIM = 294 /* autogen autogen */
|
||||
|
||||
/*
|
||||
* Notice how the entries are grouped in sets of 10 ?
|
||||
|
@ -2139,6 +2139,12 @@ struct remote_node_get_cpu_map_ret {
|
||||
u_int online;
|
||||
int ret;
|
||||
};
|
||||
struct remote_domain_fstrim_args {
|
||||
remote_nonnull_domain dom;
|
||||
remote_string mountPoint;
|
||||
uint64_t minimum;
|
||||
u_int flags;
|
||||
};
|
||||
enum remote_procedure {
|
||||
REMOTE_PROC_OPEN = 1,
|
||||
REMOTE_PROC_CLOSE = 2,
|
||||
@ -2433,4 +2439,5 @@ enum remote_procedure {
|
||||
REMOTE_PROC_NETWORK_UPDATE = 291,
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292,
|
||||
REMOTE_PROC_NODE_GET_CPU_MAP = 293,
|
||||
REMOTE_PROC_DOMAIN_FSTRIM = 294,
|
||||
};
|
||||
|
@ -44,6 +44,7 @@ sub fixup_name {
|
||||
$name =~ s/Os$/OS/;
|
||||
$name =~ s/Nmi$/NMI/;
|
||||
$name =~ s/Pm/PM/;
|
||||
$name =~ s/Fstrim$/FSTrim/;
|
||||
|
||||
return $name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user