Re: Howto setup multiboot with GPT?

2009-08-17 Thread Artis Caune
/x86/boot/loader.conf and then change bootfs on the fly: amd64# zpool set bootfs=rpool/x86 rpool amd64# reboot x86# zpool set bootfs=rpool/amd64 rpool x86# reboot -- Artis Caune Everything should be made as simple as possible, but not simpler

Strange changed paths in svn commits

2008-12-12 Thread Artis Caune
Changed paths: M /head/sys/netinet/in_pcb.h -- regards, Artis Caune . CCNA | BSDA | ' didii FreeBSD ___ freebsd-hackers@freebsd.org mailing list http

Re: svn rev. number

2008-10-01 Thread Artis Caune
in them. Shell scripts and config files in /etc will be with empt revision string?! You should really use subversion-freebsd. -- regards, Artis Caune . CCNA | ' didii FreeBSD ___ freebsd-hackers@freebsd.org mailing

build stamps

2008-06-25 Thread Artis Caune
If you are making world or release twice from one source, you will get some binaries and lot of libraries which differ because of time stamps: # make buildworld # make installworld DESTDIR=/home/build1 # rm -r /usr/obj/usr # make buildworld # make installworld DESTDIR=/home/build2

kvm/kmem limits

2007-12-12 Thread Artis Caune
Hi hackers, what are the max limits of kvm, kmem on amd64 platform? Can I set vm.kvm_size 2G and vm.kmem_size 1500M ? Regards Artis ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

[PATCH] newsyslog - don't compress first log file

2007-08-10 Thread Artis Caune
How about aditional flag (X) to newsyslog, which don't compress first log file? This is useful for apache. # cat /etc/newsyslog.conf /var/log/httpd-access.log www:www 640 64 * $W1D0 BCZX /var/run/httpd.pid 30 # ls /var/log/archive2/ httpd-access.log.0 httpd-access.log.1.gz

Re: stopping callouts

2007-06-04 Thread Artis Caune
Sam Leffler wrote: If you use callout_init_mtx then use callout_stop while holding my_mtx; if the callout is blocked waiting for my_mtx the request will be discarded. callout_drain should not be called while holding my_mtx because it can sleep. Thanks, than I will use: MTX_LOCK; ...

stopping callouts

2007-06-01 Thread Artis Caune
Hello FreeBSD-hackers! what is the right way to stop callout which is initialized with mutex: callout_init_mtx(callout_function, my_mtx, 0); should I lock mutex before calling callout_drain() or not? man page says: callout_drain() is identical to callout_stop() and if the callout has an

ioctl

2004-05-06 Thread Artis Caune
Is it correct to use code like this instead of copyin() / copyout() ? Kernel module gets pointer to structure which resides in userland memory space and modify it directly!!! userland: ioctl(tp_fd, TP_GET_TP_STATS, tp_stats) kernel: tp_stats-hooked = hooked; (freebsd 5.x, KLD) -

Re: kernel modules programming: struct proc question

2004-03-17 Thread Artis Caune
pid_t is signed int type, or am I missing something? try this one: static int new_open (struct proc *p, register struct open_args *uap) { pid_t pid; pid = p-p_pid; printf(open(2): pid: %d\n, pid); return (open(p,uap)); } On Wed, 17 Mar 2004 17:24:51 +0300, Roman Bogorodskiy [EMAIL

Re: Using Kernel level mutex in FreeBSD 4.8

2004-03-13 Thread Artis Caune
But when i tried to do network activity like pinging another machine then my application using the driver crashes. The behavior is very erratic...in some cases it works even when doing theg network operation but in another sitautaion it just crashes.. do you use real types in your driver?

Re: Using Kernel level mutex in FreeBSD 4.8

2004-03-11 Thread Artis Caune
afaik 4.x use spl(9) int s; s = splimp(); ... critical code ... splx(s); On Thu, 11 Mar 2004 05:33:02 -0800 (PST), jitendra pande [EMAIL PROTECTED] wrote: Hi, I am trying to use kernle level mutex in my driver for FreeBSD 4.8. I tried searching for kernel level mutex but couldn't find

type casts in KLD

2004-02-24 Thread Artis Caune
Hi! I'm writting kld module, and have some weird problems with mixing types and casts. e.x. if (long + u_long + u_long 0) don't work, but if (long 0 - u_long - u_long) works fine! and code like this: cur_rate = min_rate + \ (((max_rate - min_rate) * \