LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states
@ 2021-11-26 4:11 Akira Yokosawa
2021-11-26 7:16 ` Joel Colledge
2021-11-29 21:39 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Akira Yokosawa @ 2021-11-26 4:11 UTC (permalink / raw)
To: Jonathan Corbet, Joel Colledge
Cc: Philipp Reisner, Lars Ellenberg, drbd-dev, linux-doc, linux-kernel
While node-states-8.dot has two digraphs, the dot(1) command can
not properly handle multiple graphs in a DOT file and the
kernel-doc page at
https://www.kernel.org/doc/html/latest/admin-guide/blockdev/drbd/figures.html
fails to render the graphs.
It turned out that the digraph of node_states can be removed.
Quote from Joel's reflection:
On reflection, the digraph node_states can be removed entirely.
It is too basic to contain any useful information. In addition
it references "ioctl_set_state". The ioctl configuration
interface for DRBD has long been removed. In fact, it was never
in the upstream version of DRBD.
Remove node_states and rename the DOT file peer_states-8.dot.
Suggested-by: Joel Colledge <joel.colledge@linbit.com>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
---
Changes in v1 [1] -> v2
- As suggested by Joel, remove the digraph of node_states.
- Rename the DOT file peers-states-8.dot.
- Update the change log and the patch title.
- Add Joel's Suggested-by.
[1]: https://lkml.kernel.org/r/3cbff170-582b-b6cf-0988-e0d0c9b47505@gmail.com
Joel, are you OK with this change going through the -doc tree?
Thanks, Akira
--
Documentation/admin-guide/blockdev/drbd/figures.rst | 4 ++--
.../blockdev/drbd/{node-states-8.dot => peer-states-8.dot} | 5 -----
2 files changed, 2 insertions(+), 7 deletions(-)
rename Documentation/admin-guide/blockdev/drbd/{node-states-8.dot => peer-states-8.dot} (71%)
diff --git a/Documentation/admin-guide/blockdev/drbd/figures.rst b/Documentation/admin-guide/blockdev/drbd/figures.rst
index bd9a4901fe46..9f73253ea353 100644
--- a/Documentation/admin-guide/blockdev/drbd/figures.rst
+++ b/Documentation/admin-guide/blockdev/drbd/figures.rst
@@ -25,6 +25,6 @@ Sub graphs of DRBD's state transitions
:alt: disk-states-8.dot
:align: center
-.. kernel-figure:: node-states-8.dot
- :alt: node-states-8.dot
+.. kernel-figure:: peer-states-8.dot
+ :alt: peer-states-8.dot
:align: center
diff --git a/Documentation/admin-guide/blockdev/drbd/node-states-8.dot b/Documentation/admin-guide/blockdev/drbd/peer-states-8.dot
similarity index 71%
rename from Documentation/admin-guide/blockdev/drbd/node-states-8.dot
rename to Documentation/admin-guide/blockdev/drbd/peer-states-8.dot
index bfa54e1f8016..6dc3954954d6 100644
--- a/Documentation/admin-guide/blockdev/drbd/node-states-8.dot
+++ b/Documentation/admin-guide/blockdev/drbd/peer-states-8.dot
@@ -1,8 +1,3 @@
-digraph 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" ]
base-commit: b96ff02ab2be1791248237b1bf318aaf62e8b701
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states
2021-11-26 4:11 [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states Akira Yokosawa
@ 2021-11-26 7:16 ` Joel Colledge
2021-11-29 21:39 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Joel Colledge @ 2021-11-26 7:16 UTC (permalink / raw)
To: Akira Yokosawa
Cc: Jonathan Corbet, Philipp Reisner, Lars Ellenberg, drbd-dev,
linux-doc, linux-kernel
> Joel, are you OK with this change going through the -doc tree?
Yes. This has my ack. Thanks!
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states
2021-11-26 4:11 [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states Akira Yokosawa
2021-11-26 7:16 ` Joel Colledge
@ 2021-11-29 21:39 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2021-11-29 21:39 UTC (permalink / raw)
To: Akira Yokosawa, Joel Colledge
Cc: Philipp Reisner, Lars Ellenberg, drbd-dev, linux-doc, linux-kernel
Akira Yokosawa <akiyks@gmail.com> writes:
> While node-states-8.dot has two digraphs, the dot(1) command can
> not properly handle multiple graphs in a DOT file and the
> kernel-doc page at
>
> https://www.kernel.org/doc/html/latest/admin-guide/blockdev/drbd/figures.html
>
> fails to render the graphs.
>
> It turned out that the digraph of node_states can be removed.
>
> Quote from Joel's reflection:
>
> On reflection, the digraph node_states can be removed entirely.
> It is too basic to contain any useful information. In addition
> it references "ioctl_set_state". The ioctl configuration
> interface for DRBD has long been removed. In fact, it was never
> in the upstream version of DRBD.
>
> Remove node_states and rename the DOT file peer_states-8.dot.
>
> Suggested-by: Joel Colledge <joel.colledge@linbit.com>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> Cc: Philipp Reisner <philipp.reisner@linbit.com>
> Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-29 21:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 4:11 [PATCH v2] docs: admin-guide/blockdev: Remove digraph of node-states Akira Yokosawa
2021-11-26 7:16 ` Joel Colledge
2021-11-29 21:39 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).