tools/xs-clients: support depth with xenstore-watch

Add a "-d <depth>" parameter to xenstore-watch, allowing to specify
the depth parameter of the XS_WATCH command.

Using "-d" without support of depth by xenstored will refuse to set
the watch(es).

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2026-04-22 08:59:03 +02:00
1 parent 7e7723ea07
commit 464b7f4f26
2 files changed
+24 -4

No files matched your search

+9
View File
@@ -17,6 +17,15 @@ event happening.
Show the usage information for xenstore-watch and exit the program.
=item B<-d> B<depth>
Limit the number of sub-directories below the specified I<PATH>s to be
watched. A B<depth> of 0 will watch only the specified nodes, a B<depth>
of 1 will watch the specified nodes and their direct children, etc.
Using this option requires xenstored to support the Xenstore watch depth
feature. In case it is not supported, the B<-d> usage will be rejected.
=item B<-n> B<NR>
Stop waiting after having received B<NR> watch events.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.