Age | Commit message (Collapse) | Author |
|
by mutating so_state before calling soo_poll(), call soo_poll() normally
but avoid setting SS_CANTRCVMORE in the reader's so_state on first open.
This fixes EOF detection in select/poll on the reader side when the write
side is closed. Also set SS_ISDISCONNECTED when the writer count reaches
zero so POLLHUP is set in revents. Unlike Unix domain sockets, we need
to clear the EOF indicator after it has been read so that subsequent
reads will block waiting for a new writer. This now passes regress.
|
|
|
|
ok mpi@ kspillner@
|
|
|
|
ok tedu@
|
|
after discussions with beck deraadt kettenis.
|
|
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
vflush(9) succeed.
Problem reported by Helg Bredow.
OK sthen@
|
|
working read() and write().
ok tedu@
|
|
when the fuse communication channel is broken and ENOSYS when the
libfuse callback does not exist.
Reported by Helg Bredow, thanks!
ok tedu@
|
|
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private
function.
The preferred way to get memory stats is through the VM_UVMEXP
sysctl(3) since VM_METER is just a wrapper on top of it. In the
kernel, use `uvmexp' directly instead of uvm_total().
This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h>
to give some more time to port maintainers to fix their ports.
ok guenther@ as part of a larger diff.
|
|
through uvm/uvm.h and add proper includes for function definitions.
ok syl@
|
|
ok tedu@
|
|
ok beck@
|
|
|
|
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags. Add allprocess list for the code that just wants
to see processes.
ok tedu@
|
|
ok millert@.
|
|
can be further simplified.
ok kettenis@
|
|
Spotted by pelikan@
Some input from stsp@
OK stsp@, pelikan@
|
|
OK tedu@
"it looks good to me" from guenther@
|
|
Input from millert@.
Ok millert@, tedu@.
|
|
This way, if fuse unmounts a FS without FBT_DESTROY, the fuse_mnt pointer
is already invalidated. Also, on weird unmount situations with vnodes in
use, vflush() them before doing fuse_device_cleanup().
Tested with ntfs-3g, ok syl@.
|
|
of vnode in userspace.
"I think it's right" from tedu@.
|
|
the fuse device.
ok sthen@
|
|
libfuse is still open before sending fusebufs.
ok sthen@
|
|
Found the hard way and ok mpk@
|
|
|
|
tested with ajacoutot@ on gvfs+nautilus.
|
|
|
|
Thanks to Pedro Martelletto.
|
|
|
|
|
|
|
|
and mnt_stat.f_ctime is long long, too
|
|
Thanks to Pedro Martelletto.
|
|
|
|
ok tedu@
|
|
ok deraadt@
|
|
ok tedu@
|
|
|
|
|
|
|
|
|
|
ok matthew@ deraadt@
|
|
from Sylvestre Gallon ccna.syl gmail.com. Many thanks to Sylvestre for
all the hard work.
|
|
the special provided when the mount was requested. This may be the same as
the special that was actually used for the mount (e.g. in the case of a
device node) or it may be different (e.g. in the case of a DUID).
Whilst here, change f_ctime to a 64 bit type and remove the pointless
f_spare members.
Compatibility goo courtesy of guenther@
ok krw@ millert@
|
|
msdos, NFS, fifos and devices, plus support for querying it in
getconf(2) and the requisite pathconf(2) manpage blurb
ok tedu@
|
|
_PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're
fs-independent for us. Since we don't support latter three on any
fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO
symbols in <unistd.h> (via sys/unistd.h) with value -1.
Also, zap pointless tty-only values from procfs(!).
ok beck@, deraadt@
|
|
- Avoid using copyinstr() without checking the return value.
- sys_mount() has already copied the path in, so pass this to the
filesystem mount code so that it does not have to copy it in again.
- Avoid copyinstr()/bzero() dance when we can simply bzero() and strlcpy().
ok krw@
|