[EMAIL PROTECTED] (Thomas Bushnell, BSG) writes: > Marco Gerards <[EMAIL PROTECTED]> 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. -- Marco _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd