Skip to content

Commit c65687e

Browse files
jgross1liuw
authored andcommitted
tools/xenstore: remove socket-only option from xenstore client
The Xenstore access commands (xenstore-*) have the possibility to limit connection to Xenstore to a local socket (option "-s"). This is an option making no sense at all, as either there is only a socket, so the option would be a nop, or there is no socket at all (in case Xenstore is running in a stubdom or the client is called in a domU), so specifying the option would just lead to failure. So drop that option completely. Signed-off-by: Juergen Gross <[email protected]> Acked-by: Wei Liu <[email protected]>
1 parent 7a519f8 commit c65687e

File tree

5 files changed

+2
-22
lines changed

5 files changed

+2
-22
lines changed

docs/man/xenstore-chmod.1.pod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ write, and set permissions).
4646

4747
Apply the permissions to the key and all its I<children>.
4848

49-
=item B<-s>
50-
51-
Connect to the Xenstore daemon using a local socket only.
52-
5349
=item B<-u>
5450

5551
Apply the permissions to the key and all its I<parents>.

docs/man/xenstore-ls.1.pod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ I<and> the permissions for any domain not explicitly listed in
5050
subsequent entries. The key owner always has full access (read,
5151
write, and set permissions).
5252

53-
=item B<-s>
54-
55-
Connect to the Xenstore daemon using a local socket only.
56-
5753
=back
5854

5955
=head1 BUGS

docs/man/xenstore-read.1.pod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Read values of one or more Xenstore I<PATH>s.
1616

1717
Prefix value with key name.
1818

19-
=item B<-s>
20-
21-
Connect to the Xenstore daemon using a local socket only.
22-
2319
=item B<-R>
2420

2521
Read raw value, skip escaping non-printable characters (\x..).

docs/man/xenstore-write.1.pod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ provided to write them at once - in one Xenstore transaction.
1313

1414
=over
1515

16-
=item B<-s>
17-
18-
Connect to the Xenstore daemon using a local socket only.
19-
2016
=item B<-R>
2117

2218
Write raw value, skip parsing escaped characters (\x..).

tools/xenstore/xenstore_client.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ main(int argc, char **argv)
530530
{
531531
struct xs_handle *xsh;
532532
xs_transaction_t xth = XBT_NULL;
533-
int ret = 0, socket = 0;
533+
int ret = 0;
534534
int prefix = 0;
535535
int tidy = 0;
536536
int upto = 0;
@@ -565,7 +565,6 @@ main(int argc, char **argv)
565565
static struct option long_options[] = {
566566
{"help", 0, 0, 'h'},
567567
{"flat", 0, 0, 'f'}, /* MODE_ls */
568-
{"socket", 0, 0, 's'},
569568
{"prefix", 0, 0, 'p'}, /* MODE_read || MODE_list || MODE_ls */
570569
{"tidy", 0, 0, 't'}, /* MODE_rm */
571570
{"upto", 0, 0, 'u'}, /* MODE_chmod */
@@ -593,9 +592,6 @@ main(int argc, char **argv)
593592
usage(mode, switch_argv, argv[0]);
594593
}
595594
break;
596-
case 's':
597-
socket = 1;
598-
break;
599595
case 'p':
600596
if ( mode == MODE_read || mode == MODE_list || mode == MODE_ls )
601597
prefix = 1;
@@ -675,7 +671,7 @@ main(int argc, char **argv)
675671
max_width = ws.ws_col - 2;
676672
}
677673

678-
xsh = xs_open(socket ? XS_OPEN_SOCKETONLY : 0);
674+
xsh = xs_open(0);
679675
if (xsh == NULL) err(1, "xs_open");
680676

681677
again:

0 commit comments

Comments
 (0)