FreeBSD Status Report July-September, 2011

2011-11-08 Thread Daniel Gerzo
FreeBSD Quarterly Status Report - Q3/2011 Introduction This report covers FreeBSD-related projects between July and September 2011. It is the third of the four reports planned for 2011. This quarter was mainly devoted to polishing the bits for the next major version of FreeBSD, 9.0,

Re: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Ed Schouten
* Lucas Holt l...@foolishgames.com, 2005 15:24: --- src/sbin/geom/class/label/geom_label.c2008/11/21 21:05:31 1.3 +++ src/sbin/geom/class/label/geom_label.c2011/11/05 14:15:23 1.4 @@ -118,6 +118,12 @@ label_label(struct gctl_req *req) return; } +

Re: incorrect parent refcounting in subr_firmware.c?

2011-11-08 Thread John Baldwin
On Wednesday, November 02, 2011 3:56:29 pm Navdeep Parhar wrote: I built a KLD with multiple firmware images, as shown here: KMOD=foo FIRMWS= foo.bin:foo:1.0.0.0 FIRMWS+=bar.bin:bar:1.0.0.0 FIRMWS+= ... .include bsd.kmod.mk foo is the parent firmware and a firmware_get(foo) can autoload

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2011-11-08 Thread John Baldwin
On Sunday, November 06, 2011 6:49:43 pm Vijay Singh wrote: Hackers. I am hitting a panic on 8.1 in the softclock() code. Anyone seen this? PANIC : mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185 (kgdb-amd64-6.8-71) bt #0 breakpoint () at ./machine/cpufunc.h:64 #1

Re: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Ed Schouten
Hi Andrew, * Andrew Duane adu...@juniper.net, 2008 16:22: Checking the return code of strlcpy won't say if the entire string fit (exactly) correctly, or if it was truncated. It seems they do: RETURN VALUES The strlcpy() and strlcat() functions return the total length

RE: BUG: 'glabel label' name's lenght, is truncated without err/warn

2011-11-08 Thread Andrew Duane
Checking the return code of strlcpy won't say if the entire string fit (exactly) correctly, or if it was truncated. I think explicitly checking the length of label first is cleaner and more correct. I would, however, replace 15 with sizeof(md.md_label) - 1 both in the check and the printf.  

USB FS

2011-11-08 Thread Daniel Grech
Hi, I am trying to write a program that makes use of the USB_FS ioctl calls to achieve it's functionality. Unfortunately I am encountering some difficulties with these ioctl calls and am not exactly sure which call is supposed to do what. Does anyone know of some resource which could help me

Re: USB FS

2011-11-08 Thread Hans Petter Selasky
On Tuesday 08 November 2011 17:24:33 Daniel Grech wrote: Hi, I am trying to write a program that makes use of the USB_FS ioctl calls to achieve it's functionality. Unfortunately I am encountering some difficulties with these ioctl calls and am not exactly sure which call is supposed to do

Re: incorrect parent refcounting in subr_firmware.c?

2011-11-08 Thread Navdeep Parhar
On Tue, Nov 08, 2011 at 10:00:27AM -0500, John Baldwin wrote: On Wednesday, November 02, 2011 3:56:29 pm Navdeep Parhar wrote: I built a KLD with multiple firmware images, as shown here: KMOD=foo FIRMWS= foo.bin:foo:1.0.0.0 FIRMWS+=bar.bin:bar:1.0.0.0 FIRMWS+= ... .include

Re: kexec or similar for FreeBSD

2011-11-08 Thread Russell Cattelan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/6/11 6:23 AM, Andriy Gapon wrote: on 24/10/2011 20:55 Russell Cattelan said the following: So it has been a while and a lot of hair pulling but kload is sorta alive and kicking. It can now load the kernel from userspace, copy it over the

Re: incorrect parent refcounting in subr_firmware.c?

2011-11-08 Thread John Baldwin
On Tuesday, November 08, 2011 3:47:00 pm Navdeep Parhar wrote: On Tue, Nov 08, 2011 at 10:00:27AM -0500, John Baldwin wrote: On Wednesday, November 02, 2011 3:56:29 pm Navdeep Parhar wrote: I built a KLD with multiple firmware images, as shown here: KMOD=foo FIRMWS=

Re: ps -e without procfs(5)

2011-11-08 Thread Mikolaj Golub
On Sun, 6 Nov 2011 20:10:41 +0200 Kostik Belousov wrote: KB On Sat, Nov 05, 2011 at 10:37:46PM +0200, Mikolaj Golub wrote: http://people.freebsd.org/~trociny/env.sys.3.patch KB Oops, I missed this in the previous review. You cannot use fubyte in KB proc_read_mem(). fubyte reads a byte

Re: kexec or similar for FreeBSD

2011-11-08 Thread Andriy Gapon
on 08/11/2011 23:14 Russell Cattelan said the following: On 11/6/11 6:23 AM, Andriy Gapon wrote: on 24/10/2011 20:55 Russell Cattelan said the following: So it has been a while and a lot of hair pulling but kload is sorta alive and kicking. It can now load the kernel from userspace, copy it

Re: kexec or similar for FreeBSD

2011-11-08 Thread Russell Cattelan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/8/11 4:10 PM, Andriy Gapon wrote: on 08/11/2011 23:14 Russell Cattelan said the following: On 11/6/11 6:23 AM, Andriy Gapon wrote: on 24/10/2011 20:55 Russell Cattelan said the following: So it has been a while and a lot of hair pulling but

Set mac address via ioctl

2011-11-08 Thread Sife Mailling
After reading ifconfig source code for hours, I end with this, witch was suppose to change mac address via a command line: #include sys/param.h #include sys/ioctl.h #include sys/socket.h #include sys/mac.h #include net/ethernet.h #include net/if.h #include net/if_var.h /* IP */ #include