]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
tools/xenstore: remove socket-only option from xenstore client
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2020 15:41:37 +0000 (17:41 +0200)
committerWei Liu <wl@xen.org>
Thu, 8 Oct 2020 12:47:50 +0000 (12:47 +0000)
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 <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
docs/man/xenstore-chmod.1.pod
docs/man/xenstore-ls.1.pod
docs/man/xenstore-read.1.pod
docs/man/xenstore-write.1.pod
tools/xenstore/xenstore_client.c

index d76f34723d6214addc02a7164b5ccfebd7f01f24..d221f5dffcef5e06bcf266bd373419e459585736 100644 (file)
@@ -46,10 +46,6 @@ write, and set permissions).
 
 Apply the permissions to the key and all its I<children>.
 
-=item B<-s>
-
-Connect to the Xenstore daemon using a local socket only.
-
 =item B<-u>
 
 Apply the permissions to the key and all its I<parents>.
index 8dac931e9421737ebad865c3946748c6519b5669..a9f8b326532605b8dfc9e22cb186a99bad737bd6 100644 (file)
@@ -50,10 +50,6 @@ I<and> the permissions for any domain not explicitly listed in
 subsequent entries.  The key owner always has full access (read,
 write, and set permissions).
 
-=item B<-s>
-
-Connect to the Xenstore daemon using a local socket only.
-
 =back
 
 =head1 BUGS
index f5a7bb7e46f262890715408757ce42a3c74fbc3f..c7768cbbe515ef05049c23d9525927a04719a9b0 100644 (file)
@@ -16,10 +16,6 @@ Read values of one or more Xenstore I<PATH>s.
 
 Prefix value with key name.
 
-=item B<-s>
-
-Connect to the Xenstore daemon using a local socket only.
-
 =item B<-R>
 
 Read raw value, skip escaping non-printable characters (\x..).
index d1b011236a571f221696dca6ad80542309d5339f..a0b1bca33380fc818ea7eaf131d239fde51aded3 100644 (file)
@@ -13,10 +13,6 @@ provided to write them at once - in one Xenstore transaction.
 
 =over
 
-=item B<-s>
-
-Connect to the Xenstore daemon using a local socket only.
-
 =item B<-R>
 
 Write raw value, skip parsing escaped characters (\x..).
index ae7ed3eb9e37256544d869ebaa7acd0515476c51..8015bfe5be401fb70922c567f304c82430e06c22 100644 (file)
@@ -530,7 +530,7 @@ main(int argc, char **argv)
 {
     struct xs_handle *xsh;
     xs_transaction_t xth = XBT_NULL;
-    int ret = 0, socket = 0;
+    int ret = 0;
     int prefix = 0;
     int tidy = 0;
     int upto = 0;
@@ -565,7 +565,6 @@ main(int argc, char **argv)
        static struct option long_options[] = {
            {"help",    0, 0, 'h'},
            {"flat",    0, 0, 'f'}, /* MODE_ls */
-           {"socket",  0, 0, 's'},
            {"prefix",  0, 0, 'p'}, /* MODE_read || MODE_list || MODE_ls */
            {"tidy",    0, 0, 't'}, /* MODE_rm */
            {"upto",    0, 0, 'u'}, /* MODE_chmod */
@@ -593,9 +592,6 @@ main(int argc, char **argv)
                usage(mode, switch_argv, argv[0]);
            }
             break;
-        case 's':
-            socket = 1;
-            break;
        case 'p':
            if ( mode == MODE_read || mode == MODE_list || mode == MODE_ls )
                prefix = 1;
@@ -675,7 +671,7 @@ main(int argc, char **argv)
            max_width = ws.ws_col - 2;
     }
 
-    xsh = xs_open(socket ? XS_OPEN_SOCKETONLY : 0);
+    xsh = xs_open(0);
     if (xsh == NULL) err(1, "xs_open");
 
 again: