bug-hurd
[Top][All Lists]
Advanced

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

Re: fatfs write support


From: Thomas Bushnell, BSG
Subject: Re: fatfs write support
Date: 07 Apr 2004 12:56:16 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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.

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.

Thomas




reply via email to

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