How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Steven Hartland
How can I increase the maximum number or ptys available on FreeBSD 7.0? It seems that currently the machine is maxing out at 512 but there is still loads of capacity left on the machine. Ideally would like to double at least the number of ttys available, any help would be most appreciated.

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Steven Hartland
I knew his sounded very familiar, seems I asked the same question back in 2007 for 5.4 just it was capped at 256: http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2007-October/021852.html I'm sure I also remember saying this limit had been removed in 7.x but looking in the source for

Filesystem orphaning.

2009-04-01 Thread Edward Tomasz Napierala
Attached is a patch that adds filesystem orphaning. What it means, from the user point of view, is that when a disk device containing mounted filesystem gets removed from the system, all filesystem operations return immediately with an error, contents of the filesystem become invisible and

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
Hi Steven, * Steven Hartland kill...@multiplay.co.uk wrote: How can I increase the maximum number or ptys available on FreeBSD 7.0? It seems that currently the machine is maxing out at 512 but there is still loads of capacity left on the machine. Ideally would like to double at least the

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Kostik Belousov
On Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: Hi Steven, * Steven Hartland kill...@multiplay.co.uk wrote: How can I increase the maximum number or ptys available on FreeBSD 7.0? It seems that currently the machine is maxing out at 512 but there is still loads of capacity

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
Hi Kostik, * Kostik Belousov kostik...@gmail.com wrote: Can we switch to %x ? Or even, use some radix encoding of the number, to allow alphabetical symbols too ? I guess that would break a lot of existing libraries. For example: older RELENG_7/CURRENT libcs might still use TIOCGPTN. This ioctl

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Ed Schouten
* Ed Schouten e...@80386.nl wrote: I also thought about that, but the risks are probably too high. I think it's better to just redesign our utmp/wtmp/lastlog system. I guess we could do something like this: I forgot one step: - Implement utmpx. At first utmpx should just be a set of wrappers

Compilation of hostapd

2009-04-01 Thread Daamn M
Hi! I'm trying to set up wifi access point using my FreeBSD box and hostapd deamon. My goal is running EAP-TTLS server. It seems that the version shipped with base system isn't compiled with options allowing to use EAP server (I'm using 7.0 version but the same is with the latest 8.0 snapshot). I

Re: Filesystem orphaning.

2009-04-01 Thread Tim Kientzle
Edward Tomasz Napierala wrote: Attached is a patch that adds filesystem orphaning. ... I'm little short of time, so I won't be able to work on it anytime soon. If you like the idea - please do whatever is needed to get it to commitable state. This is funny: the filesystem orphaning patch is

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Paul Schenkeveld
On Wed, Apr 01, 2009 at 11:08:35PM +0200, Ed Schouten wrote: Hi Kostik, * Kostik Belousov kostik...@gmail.com wrote: Can we switch to %x ? Or even, use some radix encoding of the number, to allow alphabetical symbols too ? I guess that would break a lot of existing libraries. For

Re: Compilation of hostapd

2009-04-01 Thread Sam Leffler
Daamn M wrote: Hi! I'm trying to set up wifi access point using my FreeBSD box and hostapd deamon. My goal is running EAP-TTLS server. It seems that the version shipped with base system isn't compiled with options allowing to use EAP server (I'm using 7.0 version but the same is with the latest

-pthread propagation

2009-04-01 Thread Dmitry Marakasov
Hi! I have a question about -pthread. Imagine the situation where one port installs shared library that uses threads, and other port links with this library. A question: should the second port explicitely add -pthread to linker flags? For example, graphics/ilmbase is built with pthread support

Re: Filesystem orphaning.

2009-04-01 Thread Edward Tomasz Napierala
On 0401T1428, Tim Kientzle wrote: Attached is a patch that adds filesystem orphaning. ... I'm little short of time, so I won't be able to work on it anytime soon. If you like the idea - please do whatever is needed to get it to commitable state. This is funny: the filesystem

configuring dns/sendmail for two different servers

2009-04-01 Thread Aryeh M. Friedman
I have a domain that I just transfered from dreamhost and there are already some email accounts set up on it that are forwarded to gmail but there are also other accounts that are local accounts my question is there a easy way to say if it is not a local account forward/use as MX gmail?

Re: -pthread propagation

2009-04-01 Thread Daniel Eischen
On Thu, 2 Apr 2009, Dmitry Marakasov wrote: Hi! I have a question about -pthread. Imagine the situation where one port installs shared library that uses threads, and other port links with this library. A question: should the second port explicitely add -pthread to linker flags? Yes. For

Re: configuring dns/sendmail for two different servers

2009-04-01 Thread Aryeh M. Friedman
Gregory Shapiro wrote: I have a domain that I just transfered from dreamhost and there are already some email accounts set up on it that are forwarded to gmail but there are also other accounts that are local accounts my question is there a easy way to say if it is not a local account

Re: configuring dns/sendmail for two different servers

2009-04-01 Thread Gregory Shapiro
I was aware of that but wanted a default alias for any addr/alias that does not exist to send to gmail and alias(5) does not allow for wild cards and/or defaults it seems You can add this to your .mc file: define(`LUSER_RELAY', `local:unknownuser') and then alias 'unknownuser' to the

Re: configuring dns/sendmail for two different servers

2009-04-01 Thread Aryeh M. Friedman
Gregory Shapiro wrote: I was aware of that but wanted a default alias for any addr/alias that does not exist to send to gmail and alias(5) does not allow for wild cards and/or defaults it seems You can add this to your .mc file: define(`LUSER_RELAY', `local:unknownuser') and then

Re: configuring dns/sendmail for two different servers

2009-04-01 Thread Gregory Shapiro
I have a domain that I just transfered from dreamhost and there are already some email accounts set up on it that are forwarded to gmail but there are also other accounts that are local accounts my question is there a easy way to say if it is not a local account forward/use as MX

Re: configuring dns/sendmail for two different servers

2009-04-01 Thread Gregory Shapiro
Maybe I misread but both of those features (I have used the second but not the first) seem to be all or nothing forwarders (i.e. x...@domain is forwarded for all xxx not just some xxx) LUSER_RELAY is only for unknown users. If you user virtusertable, you'll need to list out all valid

Re: How to increase the max pty's on Freebsd 7.0?

2009-04-01 Thread Wilkinson, Alex
0n Wed, Apr 01, 2009 at 10:53:06PM +0200, Ed Schouten wrote: You can increase the maximum amount of PTYs by editing a lot of source files on your system. There is some good news: in -CURRENT we switched to Unix98-style PTYs (/dev/pts/%u). Right now the maximum amount of PTYs