From: Juergen Gross Date: Tue, 13 Sep 2022 05:35:10 +0000 (+0200) Subject: tools/xenstore: add exports for quota variables X-Git-Tag: archive/raspbian/4.16.2+90-g0d39a6d1ae-1+rpi1^2~28^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0a67b4eef104c36bef52990e413ef361acc8183c;p=xen.git tools/xenstore: add exports for quota variables Some quota variables are not exported via header files. This is part of XSA-326. Signed-off-by: Juergen Gross Acked-by: Julien Grall (cherry picked from commit 1da16d5990b5f7752657fca3e948f735177ea9ad) --- diff --git a/tools/xenstore/xenstored_core.h b/tools/xenstore/xenstored_core.h index da9ecce67f..bfd3fc1e9d 100644 --- a/tools/xenstore/xenstored_core.h +++ b/tools/xenstore/xenstored_core.h @@ -275,6 +275,11 @@ extern TDB_CONTEXT *tdb_ctx; extern int dom0_domid; extern int dom0_event; extern int priv_domid; +extern int quota_nb_watch_per_domain; +extern int quota_max_transaction; +extern int quota_max_entry_size; +extern int quota_nb_perms_per_node; +extern int quota_max_path_len; extern int quota_nb_entry_per_domain; extern int quota_req_outstanding; extern int quota_trans_nodes; diff --git a/tools/xenstore/xenstored_transaction.c b/tools/xenstore/xenstored_transaction.c index ace9a11d77..28774813de 100644 --- a/tools/xenstore/xenstored_transaction.c +++ b/tools/xenstore/xenstored_transaction.c @@ -175,7 +175,6 @@ struct transaction bool fail; }; -extern int quota_max_transaction; uint64_t generation; static struct accessed_node *find_accessed_node(struct transaction *trans, diff --git a/tools/xenstore/xenstored_watch.c b/tools/xenstore/xenstored_watch.c index fdf9b2d653..85362bcce3 100644 --- a/tools/xenstore/xenstored_watch.c +++ b/tools/xenstore/xenstored_watch.c @@ -31,8 +31,6 @@ #include "xenstored_domain.h" #include "xenstored_transaction.h" -extern int quota_nb_watch_per_domain; - struct watch { /* Watches on this connection */