From: Mike Yuan Date: Fri, 22 Mar 2024 19:18:42 +0000 (+0800) Subject: analyze-dot: also show BindsTo= in --require X-Git-Tag: v256-rc1~427^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147e7b44467f4deb2216ab7b1c1e2b89fa544d50;p=thirdparty%2Fsystemd.git analyze-dot: also show BindsTo= in --require --- diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 639a7231cb2..ca108c5cf9d 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -1018,16 +1018,12 @@ x86-64 native - When used in conjunction with the - dot command (see above), selects which - dependencies are shown in the dependency graph. If - is passed, only dependencies of type - After= or Before= are - shown. If is passed, only - dependencies of type Requires=, - Requisite=, - Wants= and Conflicts= - are shown. If neither is passed, this shows dependencies of + When used in conjunction with the dot command (see above), + selects which dependencies are shown in the dependency graph. If is passed, + only dependencies of type After= or Before= are shown. + If is passed, only dependencies of type Requires=, + Requisite=, BindsTo=, Wants=, and + Conflicts= are shown. If neither is passed, this shows dependencies of all these types. diff --git a/src/analyze/analyze-dot.c b/src/analyze/analyze-dot.c index abb594ad0a0..9e92d59bcee 100644 --- a/src/analyze/analyze-dot.c +++ b/src/analyze/analyze-dot.c @@ -79,6 +79,10 @@ static int graph_one( if (r < 0) return r; + r = graph_one_property(bus, u, "BindsTo", "gold", patterns, from_patterns, to_patterns); + if (r < 0) + return r; + r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns); if (r < 0) return r; @@ -182,6 +186,7 @@ int verb_dot(int argc, char *argv[], void *userdata) { log_info(" Color legend: black = Requires\n" " dark blue = Requisite\n" + " gold = BindsTo\n" " dark grey = Wants\n" " red = Conflicts\n" " green = After\n");