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

From: OGAWA Hirofumi
Date: Sat Mar 13 2010 - 08:06:48 EST


Philippe De Muyter <phdm@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/