Re: [PATCH] netfilter: uapi: Fix file names for case-insensitive filesystem.
From: Szőke Benjamin
Date: Mon Nov 11 2024 - 15:37:34 EST
2024. 11. 11. 19:34 keltezéssel, Pablo Neira Ayuso írta:
On Mon, Nov 11, 2024 at 05:56:06PM +0100, Florian Westphal wrote:
egyszeregy@xxxxxxxxxxx <egyszeregy@xxxxxxxxxxx> wrote:
rename net/ipv4/netfilter/{ipt_ECN.c => ipt_ECN_TARGET.c} (98%)
rename net/netfilter/{xt_DSCP.c => xt_DSCP_TARGET.c} (98%)
rename net/netfilter/{xt_HL.c => xt_HL_TARGET.c} (100%)
rename net/netfilter/{xt_RATEEST.c => xt_RATEEST_TARGET.c} (99%)
rename net/netfilter/{xt_TCPMSS.c => xt_TCPMSS_TARGET.c} (99%)
No, please, if we have to do this, then lets merge the targets
(uppercase name) into the match (lowercase), i.e. most of the contents
of xt_DSCP.c go into xt_dscp.c.
Agreed, please don't do this.
We have seen people sending patches like this one for several years,
this breaks stuff.
These all files are broken in case-insensitive filesystem.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'include/uapi/linux/netfilter/xt_CONNMARK.h'
'include/uapi/linux/netfilter/xt_connmark.h'
'include/uapi/linux/netfilter/xt_DSCP.h'
'include/uapi/linux/netfilter/xt_dscp.h'
'include/uapi/linux/netfilter/xt_MARK.h'
'include/uapi/linux/netfilter/xt_mark.h'
'include/uapi/linux/netfilter/xt_RATEEST.h'
'include/uapi/linux/netfilter/xt_rateest.h'
'include/uapi/linux/netfilter/xt_TCPMSS.h'
'include/uapi/linux/netfilter/xt_tcpmss.h'
'include/uapi/linux/netfilter_ipv4/ipt_ECN.h'
'include/uapi/linux/netfilter_ipv4/ipt_ecn.h'
'include/uapi/linux/netfilter_ipv4/ipt_TTL.h'
'include/uapi/linux/netfilter_ipv4/ipt_ttl.h'
'include/uapi/linux/netfilter_ipv6/ip6t_HL.h'
'include/uapi/linux/netfilter_ipv6/ip6t_hl.h'
'net/netfilter/xt_DSCP.c'
'net/netfilter/xt_dscp.c'
'net/netfilter/xt_HL.c'
'net/netfilter/xt_hl.c'
'net/netfilter/xt_RATEEST.c'
'net/netfilter/xt_rateest.c'
'net/netfilter/xt_TCPMSS.c'
'net/netfilter/xt_tcpmss.c'
What is your detailed plans to solve it? Maybe the contents of both upper and
lower case *.h files can be merged to a common header files like
"xt_dscp_common.h" but what about the *.c sources? For example if xt_DSCP.c
removed and its content merged to xt_dscp.c before, what is the plan with kernel
config options of CONFIG_NETFILTER_XT_TARGET_DSCP which was made for only
xt_DSCP.c source to use in Makefile? Can we remove all of
CONFIG_NETFILTER_XT_TARGET* config in the future which will lost their *.c
source files?
obj-$(CONFIG_NETFILTER_XT_TARGET_DSCP) += xt_DSCP.o
...
obj-$(CONFIG_NETFILTER_XT_MATCH_DSCP) += xt_dscp.o