Skip to contentSkip to conversation

docs: add some Xenstore related man pages

PATCH In review Juergen Gross 2 participants 12 messages Mar 12

lore
Share & tools
lore
#0 lore raw

cover docs: add some Xenstore related man pages

For some of the Xenstore client programs the man pages are missing.

Juergen Gross (4):
docs: add man page for xenstore-exists
docs: add man page for xenstore-list
docs: add man page for xenstore-rm
docs: add man page for xenstore-watch

 docs/man/xenstore-exists.1.pod | 17 +++++++++++++++++
 docs/man/xenstore-list.1.pod   | 24 ++++++++++++++++++++++++
 docs/man/xenstore-rm.1.pod     | 24 ++++++++++++++++++++++++
 docs/man/xenstore-watch.1.pod  | 25 +++++++++++++++++++++++++
 4 files changed, 90 insertions(+)
 create mode 100644 docs/man/xenstore-exists.1.pod
 create mode 100644 docs/man/xenstore-list.1.pod
 create mode 100644 docs/man/xenstore-rm.1.pod
 create mode 100644 docs/man/xenstore-watch.1.pod
Signature · 1 line
2.53.0
#1 lore raw

PATCH 1/4 docs: add man page for xenstore-exists

There is no man page for xenstore-exists, add it.

---
 docs/man/xenstore-exists.1.pod | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 docs/man/xenstore-exists.1.pod
docs/man/xenstore-exists.1.pod new file +17 -0
new file mode 100644
index 0000000000..c4d9eeecaf
@@ -0,0 +1,17 @@
+=head1 NAME
+
+xenstore-exists - test Xenstore key to exist
+
+=head1 SYNOPSIS
+
+B<xenstore-exists> I<PATH>
+
+=head1 DESCRIPTION
+
+Tests whether the specified Xenstore I<PATH> is readable and sets
+the exit value accordingly (B<0> if I<PTAH> is readable, B<1> if not).
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
Signature · 1 line
2.53.0
#2 lore raw

Re: [PATCH 1/4] docs: add man page for xenstore-exists

Quoted 14 lines · Juergen Gross

There is no man page for xenstore-exists, add it.

---
 docs/man/xenstore-exists.1.pod | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 docs/man/xenstore-exists.1.pod
docs/man/xenstore-exists.1.pod new file +0 -0
new file mode 100644
index 0000000000..c4d9eeecaf

docs/man/xenstore-exists.1.pod line 3

Quoted 3 lines
docs/man/xenstore-exists.1.pod new file +3 -0
@@ -0,0 +1,17 @@
+=head1 NAME
+
+xenstore-exists - test Xenstore key to exist

This is awkward grammar.

I suggest "test whether a Xenstore key exists"

~Andrew

#3 lore raw

Re: [PATCH 1/4] docs: add man page for xenstore-exists

Quoted 21 lines · Andrew Cooper
Quoted 14 lines · Juergen Gross

There is no man page for xenstore-exists, add it.

---
  docs/man/xenstore-exists.1.pod | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)

create mode 100644 docs/man/xenstore-exists.1.pod

docs/man/xenstore-exists.1.pod new file +0 -0
new file mode 100644
index 0000000000..c4d9eeecaf

docs/man/xenstore-exists.1.pod line 3

Quoted 3 lines
docs/man/xenstore-exists.1.pod new file +3 -0
@@ -0,0 +1,17 @@
+=head1 NAME
+
+xenstore-exists - test Xenstore key to exist

This is awkward grammar.

Quoted 1 line

I suggest "test whether a Xenstore key exists"

Fine with me.

Juergen

#4 lore raw

PATCH 2/4 docs: add man page for xenstore-list

In reply to Juergen Gross

There is no man page for xenstore-list, add it.

---
 docs/man/xenstore-list.1.pod | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 docs/man/xenstore-list.1.pod
docs/man/xenstore-list.1.pod new file +24 -0
new file mode 100644
index 0000000000..4bc1ff9846
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-list - list Xenstore key children
+
+=head1 SYNOPSIS
+
+B<xenstore-list> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+List direct children of one or more Xenstore I<PATH>s, one child per line.
+
+=over
+
+=item B<-p>
+
+List the full Xenstore path of each listed path.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
Signature · 1 line
2.53.0
#5 lore raw

Re: [PATCH 2/4] docs: add man page for xenstore-list

Quoted 28 lines · Juergen Gross

There is no man page for xenstore-list, add it.

---
 docs/man/xenstore-list.1.pod | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 docs/man/xenstore-list.1.pod
docs/man/xenstore-list.1.pod new file +14 -0
new file mode 100644
index 0000000000..4bc1ff9846
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-list - list Xenstore key children
+
+=head1 SYNOPSIS
+
+B<xenstore-list> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+List direct children of one or more Xenstore I<PATH>s, one child per line.
+
+=over
+

docs/man/xenstore-list.1.pod line 24

Quoted 10 lines
docs/man/xenstore-list.1.pod new file +10 -0
+=item B<-p>
+
+List the full Xenstore path of each listed path.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.

I had no idea we even had this...  Why on earth do we have both xenstore-ls and xenstore-list, and for them to be different?

Even for the options; xenstore-ls uses -f for full path and -p for permissions.

Having both is gross error on behalf of whomever accepted the code in the first place.  It's a bad enough usability problem that I think we should seriously consider deleting the binary rather than allowing accepting it's existance.

But as I expect that to be controversial, at a minimum both of the manpages need some kind of "do not confuse $THIS with $OTHER" warning.

~Andrew

#6 lore raw

Re: [PATCH 2/4] docs: add man page for xenstore-list

Quoted 34 lines · Andrew Cooper
Quoted 33 lines · Juergen Gross

There is no man page for xenstore-list, add it.

---
  docs/man/xenstore-list.1.pod | 24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

create mode 100644 docs/man/xenstore-list.1.pod

docs/man/xenstore-list.1.pod new file +19 -0
new file mode 100644
index 0000000000..4bc1ff9846
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-list - list Xenstore key children
+
+=head1 SYNOPSIS
+
+B<xenstore-list> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+List direct children of one or more Xenstore I<PATH>s, one child per line.
+
+=over
+
+=item B<-p>
+
+List the full Xenstore path of each listed path.
+
+=back
Quoted 8 lines

docs/man/xenstore-list.1.pod line 24

Quoted 5 lines
docs/man/xenstore-list.1.pod new file +5 -0
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.

I had no idea we even had this...  Why on earth do we have both xenstore-ls and xenstore-list, and for them to be different?

I would think the use cases are different, but this is pure speculation.

xenstore-list might be intended to be used by scripts, while xenstore-ls seems to target human readers of the output.

Quoted 2 lines

Even for the options; xenstore-ls uses -f for full path and -p for permissions.

Yes, this is weird. And "xenstore-list -p /" will print:

//local
//tools

which is not what I'd expect. :-(

Quoted 7 lines

Having both is gross error on behalf of whomever accepted the code in the first place.  It's a bad enough usability problem that I think we should seriously consider deleting the binary rather than allowing accepting it's existance.

But as I expect that to be controversial, at a minimum both of the manpages need some kind of "do not confuse $THIS with $OTHER" warning.

Its not as if one of those would cause any harm.

Juergen

#7 lore raw

PATCH 3/4 docs: add man page for xenstore-rm

In reply to Juergen Gross

There is no man page for xenstore-rm, add it.

---
 docs/man/xenstore-rm.1.pod | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 docs/man/xenstore-rm.1.pod
docs/man/xenstore-rm.1.pod new file +24 -0
new file mode 100644
index 0000000000..a85b971113
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-rm - remove Xenstore keys
+
+=head1 SYNOPSIS
+
+B<xenstore-rm> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Remove one or more Xenstore B<PATH>s.
+
+=over
+
+=item B<-t>
+
+Tidy up Xenstore keys which got all children removed.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
Signature · 1 line
2.53.0
#8 lore raw

Re: [PATCH 3/4] docs: add man page for xenstore-rm

Quoted 28 lines · Juergen Gross

There is no man page for xenstore-rm, add it.

---
 docs/man/xenstore-rm.1.pod | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 docs/man/xenstore-rm.1.pod
docs/man/xenstore-rm.1.pod new file +14 -0
new file mode 100644
index 0000000000..a85b971113
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-rm - remove Xenstore keys
+
+=head1 SYNOPSIS
+
+B<xenstore-rm> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Remove one or more Xenstore B<PATH>s.
+
+=over
+

docs/man/xenstore-rm.1.pod line 24

Quoted 10 lines
docs/man/xenstore-rm.1.pod new file +10 -0
+=item B<-t>
+
+Tidy up Xenstore keys which got all children removed.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
# xenstore-rm
xenstore-rm: Usage: xenstore-rm [-h] [-t] key [...]

Looking at xenstore_client.c, this is common to all.  Shouldn't it be included in the manpages ?

~Andrew

#9 lore raw

Re: [PATCH 3/4] docs: add man page for xenstore-rm

Quoted 43 lines · Andrew Cooper
Quoted 28 lines · Juergen Gross

There is no man page for xenstore-rm, add it.

---
  docs/man/xenstore-rm.1.pod | 24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

create mode 100644 docs/man/xenstore-rm.1.pod

docs/man/xenstore-rm.1.pod new file +14 -0
new file mode 100644
index 0000000000..a85b971113
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-rm - remove Xenstore keys
+
+=head1 SYNOPSIS
+
+B<xenstore-rm> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Remove one or more Xenstore B<PATH>s.
+
+=over
+

docs/man/xenstore-rm.1.pod line 24

Quoted 10 lines
docs/man/xenstore-rm.1.pod new file +10 -0
+=item B<-t>
+
+Tidy up Xenstore keys which got all children removed.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
# xenstore-rm
xenstore-rm: Usage: xenstore-rm [-h] [-t] key [...]
Quoted 2 lines

Looking at xenstore_client.c, this is common to all.  Shouldn't it be included in the manpages ?

Hmm, maybe a good idea.

I'll add a patch adding it to the already existing man pages and add it in each of the 4 new man pages.

Juergen

#10 lore raw

Re: [PATCH 3/4] docs: add man page for xenstore-rm

Quoted 45 lines · Jürgen Groß
Quoted 44 lines · Andrew Cooper
Quoted 38 lines · Juergen Gross

There is no man page for xenstore-rm, add it.

---
  docs/man/xenstore-rm.1.pod | 24 ++++++++++++++++++++++++

  1 file changed, 24 insertions(+)

  create mode 100644 docs/man/xenstore-rm.1.pod

docs/man/xenstore-rm.1.pod new file +24 -0
new file mode 100644
index 0000000000..a85b971113
@@ -0,0 +1,24 @@
+=head1 NAME
+
+xenstore-rm - remove Xenstore keys
+
+=head1 SYNOPSIS
+
+B<xenstore-rm> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Remove one or more Xenstore B<PATH>s.
+
+=over
+
+=item B<-t>
+
+Tidy up Xenstore keys which got all children removed.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how 
Quoted 1 line

to send bug reports.

# xenstore-rm
xenstore-rm: Usage: xenstore-rm [-h] [-t] key [...]
Quoted 7 lines
Quoted 2 lines

Looking at xenstore_client.c, this is common to all.  Shouldn't it be included in the manpages ?

Hmm, maybe a good idea.

I'll add a patch adding it to the already existing man pages and add it in each of the 4 new man pages.

Hmm, and I think it is not appropriate to exit with "1" when using the "-h" parameter. I'll add another patch to fix that.

Juergen

#11 lore raw

PATCH 4/4 docs: add man page for xenstore-watch

In reply to Juergen Gross

There is no man page for xenstore-watch, add it.

---
 docs/man/xenstore-watch.1.pod | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 docs/man/xenstore-watch.1.pod
docs/man/xenstore-watch.1.pod new file +25 -0
new file mode 100644
index 0000000000..b9b60c645c
@@ -0,0 +1,25 @@
+=head1 NAME
+
+xenstore-watch - wait for Xenstore watch events
+
+=head1 SYNOPSIS
+
+B<xenstore-watch> [I<OPTION>]... [I<PATH>]...
+
+=head1 DESCRIPTION
+
+Set Xenstore watches to the specified I<PATH>s and print the path for each
+event happening.
+
+=over
+
+=item B<-n> B<NR>
+
+Stop waiting after having received B<NR> watch events.
+
+=back
+
+=head1 BUGS
+
+Send bugs to [email protected], see
+https://wiki.xenproject.org/wiki/Reporting_Bugs_against_Xen_Project on how to send bug reports.
Signature · 1 line
2.53.0