Re: [PATCH] Initial implementation of posix_fallocate(2)

2015-09-13 Thread Dimitris Papastamos
Hi, A slightly updated patch. Removed some checks that were redundant. Index: kern/init_sysent.c === RCS file: /cvs/src/sys/kern/init_sysent.c,v retrieving revision 1.171 diff -u -p -r1.171 init_sysent.c --- kern/init_sysent.c 9

Re: [PATCH] Initial implementation of posix_fallocate(2)

2015-09-12 Thread Dimitris Papastamos
On Sat, Sep 12, 2015 at 06:57:48PM +0100, Dimitris Papastamos wrote: > + switch (fp->f_type) { > + case DTYPE_VNODE: > + break; > + case DTYPE_PIPE: > + case VFIFO: VFIFO shouldn't be here, I have moved it further down after vn_lock to check it against v_type.