patch: MFSv3 support (libsa) for boot2 (i386)

2011-12-25 Thread Evgeniy Ivanov
Hi, Here're patches to implement MINIX File System v3 support in libsa. Support for MFS is added to the boot2 for i386. -- Evgeniy From 53adf4b09d500936a0d7c36403b3c3e337914c02 Mon Sep 17 00:00:00 2001 From: Evgeniy Ivanov lolkaanti...@gmail.com Date: Mon, 5 Dec 2011 19:44:33 +0400 Subject:

close and ERESTART

2011-12-25 Thread Taylor R Campbell
sys_close guarantees that it has closed the file descriptor when it returns, even if it returns EINTR. Thus, repeating a call to close(2) when it returns EINTR is always a mistake on NetBSD, and on other systems as well such as FreeBSD and Linux. (This conforms to POSIX, as would an

fifo and [acm]time

2011-12-25 Thread Taylor R Campbell
On ufs (and tmpfs and perhaps others), reading from or writing to a fifo updates its [acm]time -- even on read-only file systems (although in that case the changes are not written to disk). It's been this way since r1.1 of ufs_vnops.c. Why? Conceptually, what is actually read from the fifo

Re: fifo and [acm]time

2011-12-25 Thread Mouse
On ufs (and tmpfs and perhaps others), reading from or writing to a fifo updates its [acm]time [...] Note that the same [acm]time updates do not apply to sockets. Aside from whether this is a good idea, this difference may make sense. A FIFO is a single shared object; multiple opens result