* file names ?
@ 2001-12-25 20:25 James Stevenson
2001-12-25 20:41 ` Ryan Cumming
2001-12-26 5:48 ` Patrick Schaaf
0 siblings, 2 replies; 6+ messages in thread
From: James Stevenson @ 2001-12-25 20:25 UTC (permalink / raw)
To: linux-kernel, netfilter-devel
Hi
i could not help but notice in the kernel source
in both the ipv4/netfilter and ipv6/netfilter
dirs there are files the same name which can cause problems
under certin conditions like non-case sensitive file systems.
like
ipt_mark.c
ipt_MARK.c
ipt_tos.c
ipt_TOS.c
this does not cause a problem for me but i do
know people who it does cause a problem for
a small example is a smallish ext2 / filesystem
and the rest being a fat filesystem to that
it can be accessed from both windows and linux.
and there is not enough space on the ext2 to compile a kernel anymore.
anyone got any suggestions ?
thanks
James
--------------------------
Mobile: +44 07779080838
http://www.stev.org
8:10pm up 7 days, 3:40, 1 user, load average: 0.00, 0.00, 0.00
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: file names ?
2001-12-25 20:25 file names ? James Stevenson
@ 2001-12-25 20:41 ` Ryan Cumming
2001-12-25 23:36 ` Nicholas Knight
2001-12-26 5:48 ` Patrick Schaaf
1 sibling, 1 reply; 6+ messages in thread
From: Ryan Cumming @ 2001-12-25 20:41 UTC (permalink / raw)
To: James Stevenson, linux-kernel, netfilter-devel
On December 25, 2001 12:25, James Stevenson wrote:
> a small example is a smallish ext2 / filesystem
> and the rest being a fat filesystem to that
> it can be accessed from both windows and linux.
> and there is not enough space on the ext2 to compile a kernel anymore.
Case-insensitivity is not your only problem. 'ln -s' is used multiple times
during the kernel build process, I'd like to see a FAT filesystem try to
handle that. I haven't checked, but the compile might also depend on the
executable bit actually working, and being able to rename and unlink files in
use. Even with filenames that do not collide in a case-insensitive namespace,
the build will fail.
The kernel compile requires a POSIX filesystem, which is a completely sane
demand. I'd go as far as saying that all 'real' filesystems are POSIX
compliant, and that non-POSIX filesystems should only be used for simple data
file storage.
-Ryan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: file names ?
2001-12-25 20:41 ` Ryan Cumming
@ 2001-12-25 23:36 ` Nicholas Knight
2001-12-26 3:59 ` Ryan Cumming
0 siblings, 1 reply; 6+ messages in thread
From: Nicholas Knight @ 2001-12-25 23:36 UTC (permalink / raw)
To: Ryan Cumming, James Stevenson, linux-kernel, netfilter-devel
On Tuesday 25 December 2001 12:41 pm, Ryan Cumming wrote:
> On December 25, 2001 12:25, James Stevenson wrote:
> > a small example is a smallish ext2 / filesystem
> > and the rest being a fat filesystem to that
> > it can be accessed from both windows and linux.
> > and there is not enough space on the ext2 to compile a kernel
> > anymore.
>
> Case-insensitivity is not your only problem. 'ln -s' is used multiple
> times during the kernel build process, I'd like to see a FAT
> filesystem try to handle that. I haven't checked, but the compile
> might also depend on the executable bit actually working, and being
> able to rename and unlink files in use. Even with filenames that do
> not collide in a case-insensitive namespace, the build will fail.
>
> The kernel compile requires a POSIX filesystem, which is a completely
> sane demand. I'd go as far as saying that all 'real' filesystems are
> POSIX compliant, and that non-POSIX filesystems should only be used
> for simple data file storage.
>
Actually there should be *no* problem at all. Just enable UMSDOS and
the UMSDOS filesystem will take care of ensuring that the FAT
filesystem supports the links, and the same filenames. Just don't try
to extract the files anywhere but in Linux with UMSDOS enabled.
Err, and don't run scandisk or anything similar on the drives while in
DOS/Windows....
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: file names ?
2001-12-25 20:25 file names ? James Stevenson
2001-12-25 20:41 ` Ryan Cumming
@ 2001-12-26 5:48 ` Patrick Schaaf
1 sibling, 0 replies; 6+ messages in thread
From: Patrick Schaaf @ 2001-12-26 5:48 UTC (permalink / raw)
To: James Stevenson; +Cc: linux-kernel, netfilter-devel
> i could not help but notice in the kernel source
> in both the ipv4/netfilter and ipv6/netfilter
> dirs there are files the same name which can cause problems
> under certin conditions like non-case sensitive file systems.
>[...]
> this does not cause a problem for me but i do
> know people who it does cause a problem for
>[...]
> anyone got any suggestions ?
Yes: don't worry. That's Unix.
> a small example is a smallish ext2 / filesystem
> and the rest being a fat filesystem to that
> it can be accessed from both windows and linux.
> and there is not enough space on the ext2 to compile a kernel anymore.
There's a very simple means to "solve" that scenario, if you are the
one in a million people who happens to have such a setup, _and_ want
to recompile your kernel from scratch: create a loop mount file on the
FAT partition, create an ext2fs there, mount that, and compile on it.
Problem solved.
best regards
Patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: file names ?
@ 2001-12-28 14:36 Jacques Gelinas
0 siblings, 0 replies; 6+ messages in thread
From: Jacques Gelinas @ 2001-12-28 14:36 UTC (permalink / raw)
To: linux-kernel
On Tue, 25 Dec 2001 15:36:46 -0500, Nicholas Knight wrote
> Actually there should be *no* problem at all. Just enable UMSDOS and
> the UMSDOS filesystem will take care of ensuring that the FAT
> filesystem supports the links, and the same filenames. Just don't try
> to extract the files anywhere but in Linux with UMSDOS enabled.
>
> Err, and don't run scandisk or anything similar on the drives while in
> DOS/Windows....
umsdos has no problems with scandisk. hardlinks are represented as special
symlinks for example.
---------------------------------------------------------
Jacques Gelinas <jack@solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-12-28 15:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-25 20:25 file names ? James Stevenson
2001-12-25 20:41 ` Ryan Cumming
2001-12-25 23:36 ` Nicholas Knight
2001-12-26 3:59 ` Ryan Cumming
2001-12-26 5:48 ` Patrick Schaaf
-- strict thread matches above, loose matches on Subject: below --
2001-12-28 14:36 Jacques Gelinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox