On Sat, 16 Aug 2008, Pteris Kaviš wrote: > Jozsef Kadlecsik wrote: > > On Sat, 16 Aug 2008, Jan Engelhardt wrote: > > > > > On Saturday 2008-08-16 15:14, Jozsef Kadlecsik wrote: > > > > On Sat, 16 Aug 2008, Jan Engelhardt wrote: > > > > > On Friday 2008-08-15 18:03, Pteris Kaviš wrote: > > > > > > > > > > > The changes are proposed in order to avoid file name clashes on > > > > > > filesystems that do not allow two files to have names that differ > > > > > > only in the case of their letters: > > > > > > > > > > > > include/linux/netfilter/xt_CONNMARK.h => xt_connmark_target.h > > > > > [...] > > > > > > > > > > As I see it, this will already be addressed by merging complementary > > > > > code into one source file (e.g. MARK, mark, CONNMARK, connmark > > > > > all into a big new xt_mark.c), to reduce (a) amount of files > > > > > and (b) build time. > > > > [...] > > > > > > > > That is half of the story: we encode the functionality (match/target) in > > > > the case of the (file)name and there are targets which have got no match > > > > counterpart and thus no natural lowercase filename to merge into it. So > > > > the directory tree still will be broken on case-insensitive filesystems. > > > We have not decided on filenames yet, just that matches/targets that > > > are commonly used together should go into a single file for the two > > > above-mentioned reasons, and lower-casing does not appear in (a) or (b). > > > > You wrote: "by merging into ... a big new xt_mark.c". Pteris also suggested > > fully lowercased names, e.g. xt_connmark_target.h. Or are you just pulling > > my leg by pointing to the possibility to >capitalize< all the filenames in > > netfilter, to achieve case-insensitive filenames? > > My suggested names were taken from within the files themselves. Note > that the standard #ifdef multiple inclusion guards in the existing files > could not follow normal practice and had to be modified in some way, > because by tradition they are simply uppercase transformations of the > filename itself (but that would end up in a clash!), and so the > xt_CONNMARK.h include guard is "_XT_CONNMARK_H_target". By natural > extension, my proposal was to rename the existing uppercase file to > xt_connmark_target.h. However, for the typical case-insensitive > filesystems out there, it is fine for the file to be called > xt_CONNMARK_target.h, and I have no objection to that, so long as that > doesn't clash with another filename differing only in the case of the > letters: [...] I should have looked up the old thread at the first place: http://marc.info/?l=netfilter-devel&m=109795874701112&w=2 Best regards, Jozsef - E-mail : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt Address : KFKI Research Institute for Particle and Nuclear Physics H-1525 Budapest 114, POB. 49, Hungary