Skip to contentSkip to conversation

docs: add xenstore-read and xenstore-write man pages

PATCH In review Marek Marczykowski-Górecki 2 participants 4 messages Jul 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 docs: add xenstore-read and xenstore-write man pages

---
Changes in v2:
- new patch

---
 docs/man/xenstore-read.pod.1  | 28 ++++++++++++++++++++++++++++
 docs/man/xenstore-write.pod.1 | 25 +++++++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 docs/man/xenstore-read.pod.1
 create mode 100644 docs/man/xenstore-write.pod.1
docs/man/xenstore-read.pod.1 new file +28 -0
new file mode 100644
index 0000000000..256d58fb7d
@@ -0,0 +1,28 @@
+=head1 NAME
+
+xenstore-read - read Xenstore values
+
+=head1 SYNOPSIS
+
+B<xenstore-read> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Read values of one or more Xenstore I<PATH>s.
+
+=over
+
+=item B<-p>
+
+Prefix value with key name.
+
+=item B<-s>
+
+Connect to the Xenstore daemon using a local socket only.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+http://wiki.xen.org/xenwiki/ReportingBugs on how to send bug reports.
docs/man/xenstore-write.pod.1 new file +25 -0
new file mode 100644
index 0000000000..424ab0e30e
@@ -0,0 +1,25 @@
+=head1 NAME
+
+xenstore-write - write Xenstore values
+
+=head1 SYNOPSIS
+
+B<xenstore-read> [I<OPTION>]... I<PATH> I<VALUE>...
+
+=head1 DESCRIPTION
+
+Write I<VALUE>s to Xenstore I<PATH>s. Multiple pairs I<PATH> I<VALUE> can be
+provided to write them at once - in one Xenstore transaction.
+
+=over
+
+=item B<-s>
+
+Connect to the Xenstore daemon using a local socket only.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+http://wiki.xen.org/xenwiki/ReportingBugs on how to send bug reports.
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

PATCH v2 2/2 xenstore-client: Add option for raw in-/output

From: Simon Gaiser <[email protected]>

Parsing/generating the escape sequences used by xenstore-client is non trivial. So make scripting (for use in stubdom) easier by adding a raw option.

[added man page entries, facor out expand_buffer]

---
Changes in v2:
- man page entries
- factor out expand_buffer

---
 docs/man/xenstore-read.pod.1     |  4 ++
 docs/man/xenstore-write.pod.1    |  4 ++
 tools/xenstore/xenstore_client.c | 65 ++++++++++++++++++++++++--------
 3 files changed, 57 insertions(+), 16 deletions(-)
docs/man/xenstore-read.pod.1 +4 -0
index 256d58fb7d..5496de17a8 100644
@@ -20,6 +20,10 @@ Prefix value with key name.
 
 Connect to the Xenstore daemon using a local socket only.
 
+=item B<-R>
+
+Read raw value, skip escaping non-printable characters (\x..).
+
 =back
 
 =head1 BUGS
docs/man/xenstore-write.pod.1 +4 -0
index 424ab0e30e..78cbbe1a69 100644
@@ -17,6 +17,10 @@ provided to write them at once - in one Xenstore transaction.
 
 Connect to the Xenstore daemon using a local socket only.
 
+=item B<-R>
+
+Write raw value, skip parsing escaped characters (\x..).
+
 =back
 
 =head1 BUGS
tools/xenstore/xenstore_client.c +49 -16

143 lines not on this page · raw message

Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] xenstore-client: Add option for raw in-/output

Quoted 8 lines · Marek Marczykowski-Górecki

From: Simon Gaiser <[email protected]>

Parsing/generating the escape sequences used by xenstore-client is non trivial. So make scripting (for use in stubdom) easier by adding a raw option.

[added man page entries, facor out expand_buffer]

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel