Re: [PATCH vfat] allow retrieving entries with trailing dots

OGAWA Hirofumi
2010-03-13T13:06:31Z

Philippe De Muyter <phdm@macqel.be> writes:

>> No, this breaks consistency. With this patch, unlink("a."), then
>> open("a.", O_CREAT) and write(), the result depend on existent
>> files. This patch is providing two files on one name.
>
> To avoid that, we could remember that we have found a filename with a trailing
> dot (in that directory or in the whole disk), and if that's the case then
> we are allowed to create filenames with trailing dots.

It sounds like dirty hack, and it would make more complex situations.
And the user can umount/mount (or reboot, etc.) before open().

Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>