qga: trivial fix for unclear document of guest-set-time
PATCH 1/1 qga: trivial fix for unclear document of guest-set-time
We mixedly used "guest time", "system time", "hardware time", "RTC" in document, it's unclear.
This patch just added two remarks of RTC and replace two "guest time" by "guest's system time".
--- qga/commands-posix.c | 2 +- qga/qapi-schema.json | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-)
qga/commands-posix.c +1 -1
@@ -171,7 +171,7 @@ void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp)/* Now, if user has passed a time to set and the system time is set, we * just need to synchronize the hardware clock. However, if no time was * passed, user is requesting the opposite: set the system time from the -* hardware clock. */ +* hardware clock(RTC). */ pid =fork ();if (pid ==0 ) {setsid ();
qga/qapi-schema.json +7 -7
@@ -96,8 +96,8 @@ ## # @guest-get-time: # -# Get the information about guest time relative to the Epoch -# of 1970-01-01 in UTC. +# Get the information about guest's System Time relative to +# the Epoch of 1970-01-01 in UTC. # # Returns: Time in nanoseconds. #
@@ -117,11 +117,11 @@ # gap was, NTP might not be able to resynchronize the # guest. # -# This command tries to set guest time to the given value, -# then sets the Hardware Clock to the current System Time. -# This will make it easier for a guest to resynchronize -# without waiting for NTP. If no @time is specified, then -# the time to set is read from RTC. +# This command tries to set guest's System Time to the +# given value, then sets the Hardware Clock(RTC) to the +# current System Time. This will make it easier for a guest +# to resynchronize without waiting for NTP. If no @time is +# specified, then the time to set is read from RTC. # # @time: #optional time of nanoseconds, relative to the Epoch # of 1970-01-01 in UTC.
Signature · 1 line
1.8.5.3
Quoted 7 lines · Amos Kong
We mixedly used "guest time", "system time", "hardware time", "RTC" in document, it's unclear.
This patch just added two remarks of RTC and replace two "guest time" by "guest's system time".
Signed-off-by Amos Kong <[email protected]>
Michal
Quoted 1 line · Amos Kong
We mixedly used "guest time", "system time", "hardware time", "RTC"
s/mixedly used/mixed the use of/
Quoted 1 line
in document, it's unclear.
s/document/documentation/
Quoted 15 lines
This patch just added two remarks of RTC and replace two "guest time" by "guest's system time".
Signed-off-by Amos Kong <[email protected]>--- qga/commands-posix.c | 2 +- qga/qapi-schema.json | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-)qga/commands-posix.c +0
-0
qga/commands-posix.c void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp) · line 174
Quoted 5 lines
qga/commands-posix.c +1
-1@@ -171,7 +171,7 @@ void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp)/* Now, if user has passed a time to set and the system time is set, we * just need to synchronize the hardware clock. However, if no time was * passed, user is requesting the opposite: set the system time from the -* hardware clock. */ +* hardware clock(RTC). */
s/clock(/clock (/
qga/commands-posix.c void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp)
Quoted 7 lines
qga/commands-posix.c +2
-5-# This command tries to set guest time to the given value, -# then sets the Hardware Clock to the current System Time. -# This will make it easier for a guest to resynchronize -# without waiting for NTP. If no @time is specified, then -# the time to set is read from RTC. +# This command tries to set guest's System Time to the +# given value, then sets the Hardware Clock(RTC) to the
and again
With those changes,
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org