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

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