Return-Path: Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id F2DAC420004 for ; Thu, 25 Nov 2021 15:16:53 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id y8so4675868plg.1 for ; Thu, 25 Nov 2021 06:16:53 -0800 (PST) From: Akira Yokosawa To: Jonathan Corbet References: <3cbff170-582b-b6cf-0988-e0d0c9b47505@gmail.com> Message-ID: <3c0ffc75-0e0f-1701-267b-1bedb6481b79@gmail.com> Date: Thu, 25 Nov 2021 23:16:48 +0900 MIME-Version: 1.0 In-Reply-To: <3cbff170-582b-b6cf-0988-e0d0c9b47505@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: Lars Ellenberg , drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, Philipp Reisner , linux-doc@vger.kernel.org Subject: Re: [Drbd-dev] [PATCH] docs: admin-guide/blockdev: Use subgraphs in node-states-8.dot List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 17 Nov 2021 18:38:14 +0900, Akira Yokosawa wrote: > While node-states-8.dot has two digraphs, dot(1) command can not > properly handle multiple graphs in a DOT file. > > Use subgraphs and merge them into a single graph. > > Signed-off-by: Akira Yokosawa > Cc: Philipp Reisner > Cc: Lars Ellenberg > --- > Hi Jon, > > I happened to spot a broken DOT script at the bottom of > > https://www.kernel.org/doc/html/latest/admin-guide/blockdev/drbd/figures.html > > and managed to fix it. Gentle ping? Thanks, Akira > > DRBD DRIVER maintainers, > If I'm missing something here, please let me know. > > Thanks, Akira > -- > .../blockdev/drbd/node-states-8.dot | 25 +++++++++++-------- > 1 file changed, 14 insertions(+), 11 deletions(-) > > diff --git a/Documentation/admin-guide/blockdev/drbd/node-states-8.dot b/Documentation/admin-guide/blockdev/drbd/node-states-8.dot > index bfa54e1f8016..993f0c152ead 100644 > --- a/Documentation/admin-guide/blockdev/drbd/node-states-8.dot > +++ b/Documentation/admin-guide/blockdev/drbd/node-states-8.dot > @@ -1,13 +1,16 @@ > -digraph node_states { > - Secondary -> Primary [ label = "ioctl_set_state()" ] > - Primary -> Secondary [ label = "ioctl_set_state()" ] > -} > +digraph G { > + compound=true; > + subgraph node_states { > + Secondary -> Primary [ label = "ioctl_set_state()" ] > + Primary -> Secondary [ label = "ioctl_set_state()" ] > + } > > -digraph peer_states { > - Secondary -> Primary [ label = "recv state packet" ] > - Primary -> Secondary [ label = "recv state packet" ] > - Primary -> Unknown [ label = "connection lost" ] > - Secondary -> Unknown [ label = "connection lost" ] > - Unknown -> Primary [ label = "connected" ] > - Unknown -> Secondary [ label = "connected" ] > + subgraph peer_states { > + Secondary -> Primary [ label = "recv state packet" ] > + Primary -> Secondary [ label = "recv state packet" ] > + Primary -> Unknown [ label = "connection lost" ] > + Secondary -> Unknown [ label = "connection lost" ] > + Unknown -> Primary [ label = "connected" ] > + Unknown -> Secondary [ label = "connected" ] > + } > } > > base-commit: 53b606fa29e321352a105978726b975b42b292a4 >