build kernel from source

2014-09-21 Thread bycn82
Hi All, Help, I am just download the source from CVS using this command `cvs checkout -A -P src`, so it should be current development version, But I met two issues. I am new here:) please help. _* Tr*__*y to build kernel from source *_ *Command**:* cd /usr/src; ./build.sh -O /usr/obj -U -j 8

Re: build kernel from source

2014-09-21 Thread Alan Barrett
On Sun, 21 Sep 2014, bycn82 wrote: *Command**:* cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=NB6 modules distribution sets I see you didn't pass -T ${TOOLDIR} option to build.sh *Result:* configure: creating ./config.status config.status: creating host-mkdep chmod +x host-mkdep

Re: build kernel from source

2014-09-21 Thread bycn82
On 9/21/14 22:39, Alan Barrett wrote: On Sun, 21 Sep 2014, bycn82 wrote: *Command**:* cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=NB6 modules distribution sets I see you didn't pass -T ${TOOLDIR} option to build.sh *Result:* configure: creating ./config.status config.status:

Re: build kernel from source

2014-09-21 Thread bycn82
*Now I am building the npfctl, and I met below** * -Wsign-compare -Wformat=2 -Werror -I/usr/src/usr.sbin/npf/npfctl --sysroot=/ -c /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c In file included from /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:56:0: /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:

Re: build kernel from source

2014-09-21 Thread Alan Barrett
On Mon, 22 Sep 2014, bycn82 wrote: *Now I am building the npfctl, and I met below** * -Wsign-compare -Wformat=2 -Werror -I/usr/src/usr.sbin/npf/npfctl --sysroot=/ -c /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c In file included from /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c:56:0:

Re: build kernel from source

2014-09-21 Thread Mindaugas Rasiukevicius
Alan Barrett a...@cequrux.com wrote: On Mon, 22 Sep 2014, bycn82 wrote: *Now I am building the npfctl, and I met below** * -Wsign-compare -Wformat=2 -Werror -I/usr/src/usr.sbin/npf/npfctl --sysroot=/ -c /usr/src/usr.sbin/npf/npfctl/npf_bpf_comp.c In file included from

How PUFFS should deal with EDQUOT?

2014-09-21 Thread Emmanuel Dreyfus
Hi When a PUFFS filesystem enforces quota, a process doing a write over quota will end frozen in DE+ state. The problem is that we have written data in the page cache that is supposed to go to disk. The code path is a bit complicated, but basically we go in genfs VOP_PUTPAGE, which leads to

Re: How PUFFS should deal with EDQUOT?

2014-09-21 Thread David Holland
On Mon, Sep 22, 2014 at 06:28:38AM +0200, Emmanuel Dreyfus wrote: When a PUFFS filesystem enforces quota, a process doing a write over quota will end frozen in DE+ state. The problem is that we have written data in the page cache that is supposed to go to disk. The code path is a bit

Re: Unification of common date/time macros

2014-09-21 Thread David Holland
On Tue, Sep 16, 2014 at 01:37:11AM +0200, Kamil Rytarowski wrote: My proposition is to go for a new file src/sys/sys/clock.h. Normalize naming with /usr/include/tzfile.h, then uniformly export the file for reuse across the kernel. #define SECSPERMIN 60L #define MINSPERHOUR

Re: How NFS keeps state for getdents()?

2014-09-21 Thread David Holland
On Sun, Sep 14, 2014 at 03:41:28AM +0200, Emmanuel Dreyfus wrote: Retreiving a directory content through getdents() can split in multiple calls. State is kept using the offset argument which tells where in the directory listing buffer we want to start reading, and it is allowed to use

Re: Compressed Cache for NetBSD

2014-09-21 Thread David Holland
On Thu, Sep 11, 2014 at 10:17:21PM -0400, vb...@andrew.cmu.edu wrote: I am a Masters student at Carnegie Mellon University specializing in Systems (with special emphasis on Operating Systems and Storage Systems). I have taken a class called Operating Systems Practicum

Re: tmpfs projects

2014-09-21 Thread David Holland
On Tue, Sep 16, 2014 at 09:54:43PM -0400, Greg Troxel wrote: Are these two projects already complete or been taken care of by people? Those look like a good entry point to the file system: - Memory-usage policies for tmpfs