[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wrxg9xri.fsf@devron.myhome.or.jp>
Date: Sat, 13 Mar 2010 22:06:25 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: Philippe De Muyter <phdm@...qel.be>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH vfat] allow retrieving entries with trailing dots
Philippe De Muyter <phdm@...qel.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@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists