[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fatfs write support

From: Marco Gerards
Subject: Re: fatfs write support
Date: Wed, 07 Apr 2004 22:25:46 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

tb@becket.net (Thomas Bushnell, BSG) writes:

> Marco Gerards <metgerards@student.han.nl> writes:
>> The only issue that could be a problem is that libdiskfs can access
>> the directory as file (readonly).  Perhaps it is possible to modify
>> libdiskfs in a way so it does not allow io_read and io_map for
>> directories when a node is a directory (and make it return EISDIR?).
>> I will need to think better about this, I'd like to hear opinions of
>> other people about this.
> Without expressing opinion on your scheme just yet, you should not
> have in general any hesitation about dropping support for io_read and
> io_map on directories.  The file interface does not guarantee that
> they will work, and EISDIR is the appropriate error.

Ok, that is good to hear.

> However, it's worth trying to make them work if you can, and there is
> no reason in principle why the fatfs can't make them work, so I think
> it's worth trying to figure out a way in this case.

Of course.  I just did not think that good about this yet.  But it
looks to me at first sight that it can cause troubles.  I want to be
extremely careful and avoid races.

I will think more about this soon.

Thanks a lot for your fast replies.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]