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

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