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. 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 _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd