Blame SOURCES/0059-doc-ebtables-nft.8-Adjust-for-missing-atomic-options.patch

6ab069
From 947e9c06a863c47e91a46d2cce90c677a90e4d09 Mon Sep 17 00:00:00 2001
6ab069
From: Phil Sutter <phil@nwl.cc>
6ab069
Date: Wed, 28 Jul 2021 17:53:53 +0200
6ab069
Subject: [PATCH] doc: ebtables-nft.8: Adjust for missing atomic-options
6ab069
6ab069
Drop any reference to them (and the environment variable) but list them
6ab069
in BUGS section hinting at ebtables-save and -restore tools.
6ab069
6ab069
Fixes: 1939cbc25e6f5 ("doc: Adjust ebtables man page")
6ab069
Signed-off-by: Phil Sutter <phil@nwl.cc>
6ab069
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
6ab069
(cherry picked from commit 765bf04ecc228783cb88c810c85bc0c769579c39)
6ab069
---
6ab069
 iptables/ebtables-nft.8 | 64 ++++++-----------------------------------
6ab069
 1 file changed, 8 insertions(+), 56 deletions(-)
6ab069
6ab069
diff --git a/iptables/ebtables-nft.8 b/iptables/ebtables-nft.8
6ab069
index 1fa5ad9388cc0..08e9766f2cc74 100644
6ab069
--- a/iptables/ebtables-nft.8
6ab069
+++ b/iptables/ebtables-nft.8
6ab069
@@ -44,12 +44,6 @@ ebtables \- Ethernet bridge frame table administration (nft-based)
6ab069
 .br
6ab069
 .BR "ebtables " [ -t " table ] " --init-table
6ab069
 .br
6ab069
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-commit
6ab069
-.br
6ab069
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-init
6ab069
-.br
6ab069
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-save
6ab069
-.br
6ab069
 
6ab069
 .SH DESCRIPTION
6ab069
 .B ebtables
6ab069
@@ -149,11 +143,9 @@ a table, the commands apply to the default filter table.
6ab069
 Only one command may be used on the command line at a time, except when
6ab069
 the commands
6ab069
 .BR -L " and " -Z
6ab069
-are combined, the commands
6ab069
+are combined or the commands
6ab069
 .BR -N " and " -P
6ab069
-are combined, or when
6ab069
-.B --atomic-file
6ab069
-is used.
6ab069
+are combined.
6ab069
 .TP
6ab069
 .B "-A, --append"
6ab069
 Append a rule to the end of the selected chain.
6ab069
@@ -313,39 +305,6 @@ of the ebtables kernel table.
6ab069
 .TP
6ab069
 .B "--init-table"
6ab069
 Replace the current table data by the initial table data.
6ab069
-.TP
6ab069
-.B "--atomic-init"
6ab069
-Copy the kernel's initial data of the table to the specified
6ab069
-file. This can be used as the first action, after which rules are added
6ab069
-to the file. The file can be specified using the
6ab069
-.B --atomic-file
6ab069
-command or through the
6ab069
-.IR EBTABLES_ATOMIC_FILE " environment variable."
6ab069
-.TP
6ab069
-.B "--atomic-save"
6ab069
-Copy the kernel's current data of the table to the specified
6ab069
-file. This can be used as the first action, after which rules are added
6ab069
-to the file. The file can be specified using the
6ab069
-.B --atomic-file
6ab069
-command or through the
6ab069
-.IR EBTABLES_ATOMIC_FILE " environment variable."
6ab069
-.TP
6ab069
-.B "--atomic-commit"
6ab069
-Replace the kernel table data with the data contained in the specified
6ab069
-file. This is a useful command that allows you to load all your rules of a
6ab069
-certain table into the kernel at once, saving the kernel a lot of precious
6ab069
-time and allowing atomic updates of the tables. The file which contains
6ab069
-the table data is constructed by using either the
6ab069
-.B "--atomic-init"
6ab069
-or the
6ab069
-.B "--atomic-save"
6ab069
-command to generate a starting file. After that, using the
6ab069
-.B "--atomic-file"
6ab069
-command when constructing rules or setting the
6ab069
-.IR EBTABLES_ATOMIC_FILE " environment variable"
6ab069
-allows you to extend the file and build the complete table before
6ab069
-committing it to the kernel. This command can be very useful in boot scripts
6ab069
-to populate the ebtables tables in a fast way.
6ab069
 .SS MISCELLANOUS COMMANDS
6ab069
 .TP
6ab069
 .B "-V, --version"
6ab069
@@ -371,16 +330,6 @@ a target extension (see
6ab069
 .BR "TARGET EXTENSIONS" ")"
6ab069
 or a user-defined chain name.
6ab069
 .TP
6ab069
-.B --atomic-file "\fIfile\fP"
6ab069
-Let the command operate on the specified
6ab069
-.IR file .
6ab069
-The data of the table to
6ab069
-operate on will be extracted from the file and the result of the operation
6ab069
-will be saved back into the file. If specified, this option should come
6ab069
-before the command specification. An alternative that should be preferred,
6ab069
-is setting the
6ab069
-.IR EBTABLES_ATOMIC_FILE " environment variable."
6ab069
-.TP
6ab069
 .B -M, --modprobe "\fIprogram\fP"
6ab069
 When talking to the kernel, use this
6ab069
 .I program
6ab069
@@ -1100,8 +1049,6 @@ arp message and the hardware address length in the arp header is 6 bytes.
6ab069
 .br
6ab069
 .SH FILES
6ab069
 .I /etc/ethertypes
6ab069
-.SH ENVIRONMENT VARIABLES
6ab069
-.I EBTABLES_ATOMIC_FILE
6ab069
 .SH MAILINGLISTS
6ab069
 .BR "" "See " http://netfilter.org/mailinglists.html
6ab069
 .SH BUGS
6ab069
@@ -1109,7 +1056,12 @@ The version of ebtables this man page ships with does not support the
6ab069
 .B broute
6ab069
 table. Also there is no support for
6ab069
 .B string
6ab069
-match. And finally, this list is probably not complete.
6ab069
+match. Further, support for atomic-options
6ab069
+.RB ( --atomic-file ", " --atomic-init ", " --atomic-save ", " --atomic-commit )
6ab069
+has not been implemented, although
6ab069
+.BR ebtables-save " and " ebtables-restore
6ab069
+might replace them entirely given the inherent atomicity of nftables.
6ab069
+Finally, this list is probably not complete.
6ab069
 .SH SEE ALSO
6ab069
 .BR xtables-nft "(8), " iptables "(8), " ip (8)
6ab069
 .PP
6ab069
-- 
6ab069
2.33.0
6ab069