sbrk vs mmap

2007-01-10 Thread darran kartaschew
Hi Guys, I'm having some issues with rewriting a simple malloc() function to be with FreeBSD (AMD64). This is part of porting an application from Linux to FreeBSD. After pulling my hair out for a while, I've found that the sbrk() system call just returns "45 - Operation Not Su

Re: sbrk vs mmap

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 01:22, darran kartaschew wrote: > >Hi Guys, >I'm having some issues with rewriting a simple malloc() function to be >with FreeBSD (AMD64). This is part of porting an application from >Linux >to FreeBSD. >After pulling my hair out for a while, I'

Re: LDAP integration

2007-01-10 Thread Lamont Granquist
On Tue, 9 Jan 2007, Vulpes Velox wrote: The why is because I like centralized management and it would be really handy for that. For my use, it would be handy in regards to my laptops. I feel better central management is extreme significant. If I had nothing more to say than "this would be nea

Re: LDAP integration

2007-01-10 Thread Doug Barton
Lamont Granquist wrote: > Why are you doing this in the FreeBSD rc scripts directly? Why not > install cfengine and work on making cfengine play better with > database-driven config? Indeed. For a "many systems" problem, cfengine is a great tool. I think the OP is more interested in the "dynamic

/etc/rc.conf.d (was: LDAP integration)

2007-01-10 Thread Mike Meyer
In <[EMAIL PROTECTED]>, Doug Barton <[EMAIL PROTECTED]> typed: > Lamont Granquist wrote: > > And if you're looking specifically at the /etc/rc.conf config file, what > > would be more useful would be an /etc/rc.conf.d/ directory. > Good news for you, we already support that. :) I agree that it make

Re: LDAP integration

2007-01-10 Thread Lamont Granquist
On Wed, 10 Jan 2007, Doug Barton wrote: Lamont Granquist wrote: Why are you doing this in the FreeBSD rc scripts directly? Why not install cfengine and work on making cfengine play better with database-driven config? Indeed. For a "many systems" problem, cfengine is a great tool. I think t

Re: LDAP integration

2007-01-10 Thread Doug Barton
Vulpes Velox wrote: > There will be no massive patch for it, given it involves little more > than the inclusion of a single rc.d file and a bit of documentation. In that case, you'll be glad to know that the base in 6.x and newer already supports running a local rc.d script in the overall rcorder

Re: LDAP integration

2007-01-10 Thread Doug Barton
Lamont Granquist wrote: > > > On Wed, 10 Jan 2007, Doug Barton wrote: >>> And if you're looking specifically at the /etc/rc.conf config file, what >>> would be more useful would be an /etc/rc.conf.d/ directory. >> >> Good news for you, we already support that. :) I agree that it makes a >> great

Re: LDAP integration

2007-01-10 Thread Vulpes Velox
On Wed, 10 Jan 2007 14:14:17 -0800 Doug Barton <[EMAIL PROTECTED]> wrote: > Vulpes Velox wrote: > > > There will be no massive patch for it, given it involves little > > more than the inclusion of a single rc.d file and a bit of > > documentation. > > In that case, you'll be glad to know that th

Re: Kernel hang on 6.x

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 16:52, Brad L. Chisholm wrote: > On Thu, 4 Jan 2007 12:53:47 -0500, John Baldwin wrote: > > On Thursday 04 January 2007 10:27, Brian Dean wrote: > > > > > > I believe that I can generate a kernel dump. We tried this yesterday > > > but didn't have a dump device configu

Re: LDAP integration

2007-01-10 Thread Lamont Granquist
On Wed, 10 Jan 2007, Doug Barton wrote: Lamont Granquist wrote: On Wed, 10 Jan 2007, Doug Barton wrote: And if you're looking specifically at the /etc/rc.conf config file, what would be more useful would be an /etc/rc.conf.d/ directory. Good news for you, we already support that. :) I agree

Re: LDAP integration

2007-01-10 Thread Vulpes Velox
On Wed, 10 Jan 2007 13:26:57 -0800 (PST) Lamont Granquist <[EMAIL PROTECTED]> wrote: > > > > On Tue, 9 Jan 2007, Vulpes Velox wrote: > > The why is because I like centralized management and it would be > > really handy for that. For my use, it would be handy in regards > > to my laptops. > > >

Re: LDAP integration

2007-01-10 Thread Vulpes Velox
On Wed, 10 Jan 2007 13:56:23 -0800 Doug Barton <[EMAIL PROTECTED]> wrote: > Lamont Granquist wrote: > > > Why are you doing this in the FreeBSD rc scripts directly? Why > > not install cfengine and work on making cfengine play better with > > database-driven config? > > Indeed. For a "many syst

Re: LDAP integration

2007-01-10 Thread Brooks Davis
On Wed, Jan 10, 2007 at 04:54:59PM -0600, Vulpes Velox wrote: > On Wed, 10 Jan 2007 14:14:17 -0800 > Doug Barton <[EMAIL PROTECTED]> wrote: > > > Vulpes Velox wrote: > > > > > There will be no massive patch for it, given it involves little > > > more than the inclusion of a single rc.d file and a

Re: Kernel hang on 6.x

2007-01-10 Thread Brad L. Chisholm
On Thu, 4 Jan 2007 12:53:47 -0500, John Baldwin wrote: > On Thursday 04 January 2007 10:27, Brian Dean wrote: > > > > I believe that I can generate a kernel dump. We tried this yesterday > > but didn't have a dump device configured. > > If this is 6.x, turn on minidumps via the sysctl. The dump

Re: sbrk vs mmap

2007-01-10 Thread darran kartaschew
> Is there a particular reason you have to use assembly and not C? The whole application is in assembly (some of us still enjoy coding in assembly), and rather not link to libc if I don't have to. (There are about 5 syscalls for the entire application, porting between each OS's hasn

Re: Kernel hang on 6.x

2007-01-10 Thread Brad L. Chisholm
On Wed, Jan 10, 2007 at 05:53:24PM -0500, John Baldwin wrote: > On Wednesday 10 January 2007 16:52, Brad L. Chisholm wrote: > > > > I work with Brian, and have been helping him analyze this problem. We have > > been able to generate kernel dumps, and have also done some additional > > analysis un

Re: LDAP integration

2007-01-10 Thread Lamont Granquist
On Wed, 10 Jan 2007, Vulpes Velox wrote: And if you're looking specifically at the /etc/rc.conf config file, what would be more useful would be an /etc/rc.conf.d/ directory. That gets away from the need to tweak and edit the /etc/rc.conf config file with multiple inputs tweaking a single file.

Re: ufs_rename: fvp == tvp (can't happen), but it did

2007-01-10 Thread Kris Kennaway
On Sun, Jan 07, 2007 at 12:44:39PM +0100, Attila Nagy wrote: > On 2007.01.07. 1:11, [EMAIL PROTECTED] wrote: > >It sounds as if the caller of ufs_rename() is confused. You could > >try setting a breakpoint on the printf(), or change it to a panic() > >to get a dump, and try to figure out who the c

Re: LDAP integration

2007-01-10 Thread Lamont Granquist
On Wed, 10 Jan 2007, Vulpes Velox wrote: On Wed, 10 Jan 2007 13:56:23 -0800 Doug Barton <[EMAIL PROTECTED]> wrote: Lamont Granquist wrote: Why are you doing this in the FreeBSD rc scripts directly? Why not install cfengine and work on making cfengine play better with database-driven config?

Re: LDAP integration

2007-01-10 Thread Vulpes Velox
On Wed, 10 Jan 2007 17:10:36 -0800 (PST) Lamont Granquist <[EMAIL PROTECTED]> wrote: > > > On Wed, 10 Jan 2007, Vulpes Velox wrote: > > On Wed, 10 Jan 2007 13:56:23 -0800 > > Doug Barton <[EMAIL PROTECTED]> wrote: > >> Lamont Granquist wrote: > >>> Why are you doing this in the FreeBSD rc script

Re: Kernel hang on 6.x

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 19:15, Brad L. Chisholm wrote: > On Wed, Jan 10, 2007 at 05:53:24PM -0500, John Baldwin wrote: > > On Wednesday 10 January 2007 16:52, Brad L. Chisholm wrote: > > > > > > I work with Brian, and have been helping him analyze this problem. We > > > have > > > been able

Best practices for using gjournal with gmirror?

2007-01-10 Thread John Nielsen
I have a few questions for pjd (or anyone else) about using gjournal, particularly when used with gmirror. 1) I'm running 6-STABLE and plan to test with gjournal6_20061030.patch (from the mailing list; updated version of 20061024 that applies cleanly). Is there a better/newer version for -STABL

Re: LDAP integration

2007-01-10 Thread Freddie Cash
On Wed, January 10, 2007 2:43 pm, Lamont Granquist wrote: > On Wed, 10 Jan 2007, Doug Barton wrote: >> Lamont Granquist wrote: >>> On Wed, 10 Jan 2007, Doug Barton wrote: > And if you're looking specifically at the /etc/rc.conf config > file, what would be more useful would be an /etc/rc.co