Re: Patch for MS Hyper V (virtualization)

2009-05-05 Thread David Malone
I was talking about the Hyper-V problem with a guy from MS, and he followed up on it for me. It seems this is a known issue, which should be fixed in the latest version of Hyper-V (i.e. the RC of Windows Server 2008 R2 that was released on TechNet last week). David.

Re: C99: Suggestions for style(9)

2009-05-02 Thread David Malone
FWIW, I'd rarely support changing style(9), unless it is actually causing people to write bad code. It's designed to produce consistent code, and changing it does not encourage consistency. -Do not put declarations -inside blocks unless the routine is unusually complicated. +Prefer declaring

Re: C99: Suggestions for style(9)

2009-05-02 Thread David Malone
I'm not sure I buy this - the initialisation is unlikely to move in a piece of code, so it's as hard to find now as it was before. Editors supporting finding declarations should be able to find initialisations just as easily. (I'm old fashioned and do it via regexps.) But why not combine

Re: Unprivileged user can't set sticky bit on a file; why?

2008-11-14 Thread David Malone
On Thu, Nov 13, 2008 at 11:05:21PM -0800, Nate Eldredge wrote: since root is able to do it. src/sys/ufs/ufs/ufs_vnops.c has the following comment: /* * Privileged processes may set the sticky bit on non-directories, * as well as set the setgid bit on a file with

Re: bad NFS/UDP performance

2008-09-26 Thread David Malone
On Fri, Sep 26, 2008 at 04:35:17PM +0300, Danny Braniss wrote: I know, but I get about 1mgb, which seems somewhat low :-( Since UDP has no way to know how fast to send, you need to tell iperf how fast to send the packets. I think 1Mbps is the default speed. David.

Re: restore of file system into USB key terrible slow

2008-08-07 Thread David Malone
On Tue, Aug 05, 2008 at 11:40:13AM +0200, Matthias Apitz wrote: What means 'Header with wrong dumpdate'? It's a warning message that probably shouldn't be printed, but has no impact other than the printing of the warning. We've fixed bug that causes it to be printed recently. David.

Re: IPv6 CVS

2008-08-07 Thread David Malone
On Tue, Aug 05, 2008 at 10:34:09PM +0100, Bruce Cran wrote: The problem is cvsupd - since it's written in Modula3 and doesn't support IPv6 you have to use an inetd/netcat hack to accept IPv6 connections on the server. As mentioned in

Re: general i/o question

2008-05-07 Thread David Malone
On Wed, May 07, 2008 at 05:39:00PM +0200, [EMAIL PROTECTED] wrote: i need to test (NOWAIT), the presence of keypressed/depressed on a terminal and then read the scan code, like for a piano pc keyboard. my questions are as follows: 1. is it a general C function which may scan a terminal

Re: new syslogd option for adding local timestamp

2008-02-20 Thread David Malone
Hi Thomas, The -T option looks reasonable to me - can you submit a PR and let me know what number it is. I'll have a look at making the change. David. ___ freebsd-hackers@freebsd.org mailing list

Re: Debugging times

2007-07-15 Thread David Malone
On Sun, Jul 15, 2007 at 11:37:57AM +0200, Dominique Goncalves wrote: Yes, it does! Setting ct.dow to -1 fixes the time in a correct way. It works also for me with qemu 0.9.0. Great - I'll work on getting it merged in. David. ___

Re: Debugging times

2007-07-12 Thread David Malone
On Thu, Jul 12, 2007 at 12:14:43AM +0200, Ivan Voras wrote: I've got interesting results (in the bad sense of the phrase): I do get the message Invalid time in real time clock. Check and reset the time immediately (the i386 message) BUT my time gets reset to 0 (midnight 1970.) Ah - that's

Re: Debugging times

2007-07-11 Thread David Malone
On Tue, Jul 10, 2007 at 12:29:26AM +0200, Ivan Voras wrote: Yes, I'll test them. The problem is - the same kernel works when booted off a hard drive, so unless the VMWare BIOS is very messed up (it's the first time I see such problems) it may not help. Please, scatter debug printf's around

Re: Debugging times

2007-07-09 Thread David Malone
On Mon, Jul 09, 2007 at 11:25:46PM +0200, Ivan Voras wrote: The date is set wrong either on boot or very early after the kernel has booted (I've verified it's wrong before hostid rc.d script, which is one of the first to be executed). I have some patches to make the code that reads the date

Re: PR conf/107453 still pending

2007-04-18 Thread David Malone
The PR conf/107453 (calendar.judaic is out of date) is still pending. I submitted the patch to correct this bug back in January. It is just a replacement of an ASCII text file and should not affect the operation of the OS. Could some one with the commit bit please look at this and commit it?

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

2007-01-12 Thread David Malone
On Sat, Jan 06, 2007 at 11:28:47PM +0100, Attila Nagy wrote: The strange thing happens when both the local and FC disks are working in the mirrors. I get the following warning very often: ufs_rename: fvp == tvp (can't happen) We get these occasionally on a 4.11 NFS server, and we've been

Re: ipv6 connection hash function wanted ...

2006-11-16 Thread David Malone
On Thu, Nov 16, 2006 at 05:52:32PM +0900, JINMEI Tatuya / [EMAIL PROTECTED]@C#:H wrote: If you want something whose behavior is mathematically guaranteed, I'd recommend universal hashing as already suggested in this thread. Yep - I agree. I'll try and sort something out for Max - it may need

Re: ipv6 connection hash function wanted ...

2006-11-14 Thread David Malone
On Tue, Nov 14, 2006 at 05:09:20PM +0100, Max Laier wrote: Any ideas? Any papers that deal with this problem? Assuming you don't want to use one of the standard cryptographic ones (which I can imagine being a bit slow for something done per-packet), then one option might be to use a simpler

Re: File trees: the deeper, the weirder

2006-10-29 Thread David Malone
On Sun, Oct 29, 2006 at 05:07:16PM +0300, Yar Tikhiy wrote: Weird, eh? Any ideas what's going on? I would guess that you need a new vnode to create the new file, but no vnodes are obvious candidates for freeing because they all have a child directory in use. Is there some sort of vnode clearing

Re: contiguous memory allocation problem

2006-07-01 Thread David Malone
On Sat, Jul 01, 2006 at 10:44:54AM +0200, Hans Petter Selasky wrote: The latest concensus seems to be that the USB system should make use of the scatter-gather facilities in the hardware to avoid the need to allocate large contiguous memory chunks. iedowse@ had mostly finished

Re: security.bsd.see_other_uids for jails

2006-05-31 Thread David Malone
Mostly off-topic, but couldn't you simplify the logic here slightly: Definitely! I was originally going to compare jail IDs, but realized I could just compare the jail pointers. Evidently my fingers were still thinking about how to implement it the other way. ;-) David.

Re: security.bsd.see_other_uids for jails

2006-05-28 Thread David Malone
On Sun, May 28, 2006 at 03:46:06PM +0200, Anatoli Klassen wrote: if security.bsd.see_other_uids is set to 0, users from the main system can still see processes from jails if they have (by accident) the save uid. For me it's wrong behavior because the main system and the jail are two

Re: The 'ln -s' command

2006-05-24 Thread David Malone
On Wed, May 24, 2006 at 01:21:59AM +, [EMAIL PROTECTED] wrote: I tried the 'ln -s' command in bothe 4.34.7 in a situation where it should fail and it did, but it still had a return/exit code of 0 , I think it should have been nonzero. I tried 'ln -s a b' where the file b existed

Re: Fastest timecounter ?

2006-02-28 Thread David Malone
On Mon, Feb 27, 2006 at 06:09:26PM +0200, Vlad GALU wrote: I wrote a piece of software that has to get the current timestamp, one way or the other, a huge number of times per second. Apart from the empyrical tests one can perform to find out the timekeeping scheme with the less

Re: Invalid ipfirewall rule?

2006-01-05 Thread David Malone
On Wed, Jan 04, 2006 at 05:59:44PM -0700, Dan Joumaa wrote: entry-fw_prot = IPPROTO_TCP|IPPROTO_UDP; This may not be your problem, but I think you need two rules to do this the protocol number is a 8 bit number, not a bit field (ie. IPPROTO_TCP is 6 and IPPROTO_UDP is 17, so oring them

Re: rm: Directory not empty ..(had tried chflag ...)

2005-12-06 Thread David Malone
On Tue, Dec 06, 2005 at 07:14:26PM +0800, K.C.Huang-MLC wrote: Dear All: I running fsck -y to a device, and I delete some files in the same time . I found there were some files could'nt be delete.. message: rm: old_files: Directory not empty I had tried chflags -R

Re: journaling fs and large mailbox format

2005-09-30 Thread David Malone
On Fri, Sep 30, 2005 at 09:43:13PM +0200, Vaclav Haisman wrote: I don't think that frag, inode and block size is the main factor that makes XFS work well in many small files situations. From what I have read about XFS I gather that it allocates inodes on demand, that it doesn't have fixed

Re: kernel hack

2005-09-25 Thread David Malone
On Sun, Sep 25, 2005 at 03:31:51AM -0700, kamal kc wrote: does anybody know what is the best way to start kernel hack. It isn't quite clear what you mean, but presuming you mean make a change to the FreeBSD kernel that you use then: 1) First learn how to recompile your kernel. You can get

Re: BGP reverse dns

2005-09-22 Thread David Malone
On Wed, Sep 21, 2005 at 09:51:49AM -0600, Steve Suhre wrote: I don't want to turn off reverse lookups, is there anyway to get around this? Or a simple fix on their end? I know nothing about BGP routing... We're running sendmail, and spammassassin through procmail. The mail problem started

Re: bge driver internal routing issues?

2005-08-29 Thread David Malone
On Sun, Aug 28, 2005 at 09:06:47PM +0100, Steven Hartland wrote: Having a really odd problem here where udp queries to servers running on machines with bge cards dont respond via ip address that are being bound on: Can you run tcpdump -s 0 -vvv port 1234 on the client (replace port 1234 with

Re: How to do proper locking

2005-08-04 Thread David Malone
On Thu, Aug 04, 2005 at 06:50:12PM +0200, Hans Petter Selasky wrote: 2) nonblocking: increment some other refcount that the callback checks before accessing any data. I think people usually call this something like a generation count. This sort of scheme used to be used for vnodes in

Re: Atheros, hardware access layer, collisions

2005-07-26 Thread David Malone
I just had a lengthy discussion with a couple of guys about the 802.11 protocol. One had said that the random delays inserted before transmission was one of the *IFS delays (can't remember which now), and that it was a standard 802.11 number, not a random delay. Yep - in 802.11b CWmin is

Re: Atheros, hardware access layer, collisions

2005-07-21 Thread David Malone
On Wed, Jul 20, 2005 at 10:03:49PM -0500, Sam Pierson wrote: I think there is still collision detection happening on the hardware level. I think I have to disable the retransmission of frames which are lost due to collisions. Here's my reasoning: In the lab, two hosts are sending packets

Re: Atheros, hardware access layer, collisions

2005-07-21 Thread David Malone
I've got two computers synchronized to send one packet each to this machine sitting between them. This machine responds with a packet to each that it receives (on the application level, not in the control frame space), so if there is a collision, I don't want the middle machine to respond

Re: Atheros, hardware access layer, collisions

2005-07-21 Thread David Malone
I was looking for this in the ah.h and the ah_desc.h files. Are they someplace else, or maybe this is a system call? I can't find anything about the retry limit (-- CWmin = retry?) Thanks, CWmin is a setting that controls the random delay before packets are transmitted. Search for tqi_cwmin

Re: Google SoC idea

2005-06-07 Thread David Malone
On Tue, Jun 07, 2005 at 09:40:05PM +0200, Pawel Jakub Dawidek wrote: + Does it make sense to do it this way? Is it worth applying for the SoC? Not sure. Basically this is simlar what softupdate does, I think. From another point of view softupdates are only available for UFS. You probably

Re: Google SoC idea

2005-06-07 Thread David Malone
The problem with journalling at the block layer is that you pretty much become forced to journal metadata and data, since the block layer really doesn't know the distinction, Definitely - I guess I should have stated that explicitly. Full journalling has many drawbacks from the viewpoint

Re: Fwd: 5-STABLE kernel build with icc broken

2005-03-29 Thread David Malone
On Tue, Mar 29, 2005 at 09:11:07PM +1000, Peter Jeremy wrote: That's almost a year ago and specifically for the amd64. Does anyone know what the results were? I had a quick dig around on cvsweb this morning:

Re: passwd permissions

2005-03-21 Thread David Malone
On Mon, Mar 21, 2005 at 07:33:25AM -0500, c0ldbyte wrote: About the easiest way to go about it would be to set the umask for passwd command well in operation. Unfortunately, I don't think this will work because pwd_mkdb explicitly sets the permissions on the files in question. David.

Re: passwd permissions

2005-03-20 Thread David Malone
On Sun, Mar 20, 2005 at 01:26:57PM -0600, H. S. wrote: I'm using FreeBSD on various servers for many time now, and there is something that always bothered me. It is related to /etc/passwd and /etc/pwd.db permissions. I have custom (0640) permissions on these files. However, each time a user

Re: function prototype of fdrop() and fdrop_locked() in kern_descrip.c

2005-02-27 Thread David Malone
On Sat, Feb 26, 2005 at 11:22:03PM -0800, Yan Yu wrote: I am wondering about what is the motivation of fdrop is defined as A) as opposed to B).. or it is an arbitrary design choice? it seems to me fdrop is called usually when an fd is freed(or is there other reason that fdrop get called?),

Re: syslogd pipelines losing messages

2005-01-24 Thread David Malone
On Mon, Jan 24, 2005 at 10:39:23AM -0500, Felix Hernandez-Campos wrote: Anyway, I think I did all the homework, and I just need someone to suggest an elegant solution rather than my usleep (is there a yield-type syscall?). I'm more than willing to try out your ideas in our environment and

Re: Patch for linux ABI for MSG_NOSIGNAL and out of order tcp packet issue

2005-01-18 Thread David Malone
On Tue, Jan 18, 2005 at 03:18:42PM -, Steven Hartland wrote: The attached patch checks for MSG_NOSIGNAL and if set enables SO_NOSIGPIPE for the duration of send call. I just had a quick look at the patch. The patch should probably use kern_setsockopt, which will simplify it considerably.

Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3

2005-01-08 Thread David Malone
On Sat, Jan 08, 2005 at 01:21:14PM -0500, Charles Sprickman wrote: Any idea what type of impact this patch would have on say, a large qmail server that's drowning in context-switches? It will depend on how many processes you have running at any one moment and how often processes are

Re: hostname lookup problem

2004-12-07 Thread David Malone
It looks like the recursive name server is doing something weird. The nameservers I use are 193.216.1.10 (primary DNS) (nic.daxnet.no) and 193.216.69.10 (secondary DNS) (ns.tele2.no) Wired - when I dig at those two machines they respond with the correct answer. Could there be some sort of

Re: ssh select() problem on 5.3

2004-11-28 Thread David Malone
On Sun, Nov 28, 2004 at 08:30:03PM +0200, Alin-Adrian Anton wrote: A tcpdump shows that what actually happens is that packets won't reach me in spite of the fact that his firewall(router)'s tcpdump shows that he keeps sending them to me. Packets never reach me, but I am still able to send

Re: NFS + VM question

2004-10-15 Thread David Malone
On Thu, Oct 14, 2004 at 04:27:38PM +0200, Oliver Fromme wrote: On the other hand, the kernel should know that the mounts come from the same NFS source, so it might actually be able to handle it efficiently (i.e. share). But I really don't know. Any FreeBSD kernel hacker can enlighten me?

Re: NFS + VM question

2004-10-15 Thread David Malone
Since the server could actually hand out different content depending on the mount instance, I don't think the NFS client could make these assumptions. Maybe I'm missing something, but I'm not convinced that's true. NFS is file-handle centric: there's no real concept of a mount point at

Re: TCP RTO

2004-09-08 Thread David Malone
On Wed, Sep 08, 2004 at 05:43:36PM +0100, Soo-Hyun Choi wrote: These variables are used to calculate the TCP RTO. But why do they have the two different version of variables? There are two different variables because they store different things. One measures the average of the round trip time

Re: kern___getcwd() returns ENOTDIR

2004-06-28 Thread David Malone
On Mon, Jun 28, 2004 at 01:26:56AM -0700, David Schultz wrote: It was discussed when phk merged it into kern___getcwd() last year, and on at least one other occasion. However, I can't seem to find the relevant thread in the mail archives. Perhaps phk or dwmalone remember. The only problems

Re: waiting on sbwait

2004-06-25 Thread David Malone
On Fri, Jun 25, 2004 at 09:17:01AM +0300, Danny Braniss wrote: it's definetly NFS related, i/you can cause this to happen at will, ie: ls /net/host where host is down. the /net is a amd trigger which will try and mount via nfs all of host's exports. In that case, the sbwait is the kernel

Re: /bin/ls sorting bug?

2004-06-21 Thread David Malone
Sorting on nanoseconds too is likely to be more confusing than useful. Even if we use one of the precious few option letters ls doesn't use already to add a nanosecond display, most people won't know about it because they don't care about nanoseconds. They might care when they notice---as

Re: /bin/ls sorting bug?

2004-06-20 Thread David Malone
On Sat, Jun 19, 2004 at 11:52:29PM +0100, Scott Mitchell wrote: On Sat, Jun 19, 2004 at 10:06:01PM +0200, Dimitry Andric wrote: Looking through ls source shows that the sorting is done by passing a comparison function to fts_open(3). In the case of sorting by modification time, the *only*

Re: Bridging Code - MAC Filtering

2004-06-15 Thread David Malone
On Tue, Jun 15, 2004 at 03:57:12PM -0300, Aldrin Leal wrote: Does the bridging code in FreeBSD 5.2-RELEASE have the hability to perform mac checking for a given IP? You could use ipfw2, which can match both on IP address and MAC address. David.

Re: fopen(file,a)

2004-05-26 Thread David Malone
On Sat, May 22, 2004 at 07:27:06PM +0300, Anton Alin-Adrian wrote: if ( (fp_queue=fopen(fqueue,a)) ==NULL);//will wait for locks ^ Extra semicolon. {

Re: How do inodes work?

2004-05-16 Thread David Malone
On Sun, May 16, 2004 at 02:25:37AM -0300, Marc G. Fournier wrote: so I take there are 'gaps' in the inode list? it doesn't re-use freed ones but keeps climbing until maybe it rolls around or something? A particular numbered inode always lives in the same place on the disk. When choosing what

Re: unexpected trafic

2004-04-29 Thread David Malone
On Thu, Apr 29, 2004 at 09:01:32PM +0700, TSaplin Mikhail wrote: HI ALL; My freebsd5.1 emits some trafic: 20:32:41.496039 129dial.supernet.kz.52075 GATEKEEPER.MCAST.NET.1718: udp 31 Does sockstat show which process is using port 52075? David.

Re: how to flush out cache.?

2004-04-21 Thread David Malone
On Wed, Apr 21, 2004 at 01:47:43PM -0700, Julian Elischer wrote: ingenious, but, no we can't do that.. As I mentionned.. someone suggested using 'dump' to extract the file from raw disk and checksumming that... :-) If it is SCSI, you could probably put a second controler on the SCSI bus, and

Re: Loosing STDOUT after file rotation

2004-04-02 Thread David Malone
On Thu, Apr 01, 2004 at 04:53:19PM -0500, James Housley wrote: I have a program that I have the is supposed to run forever. I log any output to a log file. It is run in a startup script like thie: program_name $err_log 21 The problem is that after newsyslog rotates the $err_log file,

Re: inetd needs discard service in /etc/services

2004-03-23 Thread David Malone
On Wed, Mar 24, 2004 at 02:20:26AM +0900, Hajimu UMEMOTO wrote: How about this patch? Looks good to me, if it fixes Brooks's problem. brooks The real problem is that we should either not use getaddrinfo to make brooks sockaddrs or we should do it on demand when we actually have what we

Re: inetd needs discard service in /etc/services

2004-03-12 Thread David Malone
I would like to commit the following patch. It changes the port from discard to syslog and documents the dependency. I choose syslog because it really does need to be in /etc/services on most machines since it starts before NIS. I'll also file a PR against inetd in hopes that someone gets

Re: Newbie : Problem with kgdb

2004-02-25 Thread David Malone
On Wed, Feb 25, 2004 at 01:18:14PM +0530, [EMAIL PROTECTED] wrote: I get the warning (no debugging symbols found)... when I invoke gdb -k /kernel Look for the kernel.debug file in the directory where you complied the kernel. This should have all the symbols - it is probably something like

Re: OT: tftp server

2004-02-24 Thread David Malone
It's worth noting that ours works poorly with PXE clients. The ftp/tftp-hpa port is the one most commonly recommend for PXE applications. I've never had any problems PXE booting FreeBSD using out tftpd, but I did have trouble with Linux once - the loader insisted that the transfer size

Re: signed char bug in regexp library

2004-02-17 Thread David Malone
On Mon, Feb 16, 2004 at 08:50:39PM +0100, Mikulas Patocka wrote: When i compile library with -funsigned-char, it works fine. But it isn't compiled with that flag in FreeBSD. The signedness of chars is left as a choice for the compiler - on the platform you are working on they must have decided

Re: Making inheritance of group ID configurable

2004-02-09 Thread David Malone
On Mon, Feb 09, 2004 at 05:10:59PM +0100, Andre Albsmeier wrote: New items created on an ufs normally inherit their group ID from the parent directory. I have the need for making this configurable. Since the set-group-ID bit is not used for directories on BSD, I would like to use it to

Re: shutdown -p now

2004-01-22 Thread David Malone
On Wed, Jan 21, 2004 at 03:39:00PM -0500, Robert Watson wrote: shutdown -p now is dependant upon hardware, and am 100% sure my hardware supports this; yet it still does not work. Must I have anything added to my kernel configuration or anything? What version of FreeBSD are you using? Do

Re: patch: portable dirhash

2003-12-17 Thread David Malone
On Wed, Dec 17, 2003 at 01:09:18PM -0500, Ted Unangst wrote: while on the subject, there's a piece of code something like this in freebsd: /* * We hash the name and then some other bit of data that is * invariant over the dirhash's lifetime. Otherwise names *

Re: interrupt statistics

2003-11-19 Thread David Malone
On Wed, Nov 19, 2003 at 09:46:02AM +0100, [EMAIL PROTECTED] wrote: ISTR there is a tool (other than systat -vmstat) that shows interrupt statistics for all interrupts, but I can't find anything except the hw.intrnames and hw.intrcnt sysctls, which aren't directly human- readable. Does anyone

Re: O_NOACCESS?

2003-10-31 Thread David Malone
On Thu, Oct 30, 2003 at 07:46:38AM -0800, andi payn wrote: In FreeBSD, this doesn't work; you just get EINVAL. I believe this is because of a security problem discovered a few years ago, where you could open a file like /dev/io for neither read nor write but still get the special privelages

Re: ktrace/kdump question: intrepretting calls.

2003-10-23 Thread David Malone
On Thu, Oct 23, 2003 at 04:40:41PM +0100, Josef Karthauser wrote: I'm trying to work out what a particular application does by using ktrace and kdump. At the relevant point in the kdump it says: 1080 Application CALL #91(0x28d28000,0x4000) 1080 Application RET #91 0 How do I go

Re: Serve NFS from within a jail?

2003-10-23 Thread David Malone
On Wed, Oct 22, 2003 at 11:42:06PM -0700, Nicholas Esborn wrote: However, neither mountd nor nfsd are happy running inside the jail: NFS is one of those things that is largely implemented as a service in the kernel, and so doesn't really fit in with the way jail's work. If you want to run an

Re: 20TB Storage System

2003-09-03 Thread David Malone
On Wed, Sep 03, 2003 at 11:06:15AM +, Geoff Buckingham wrote: However I just read the newfs man page and am intrigued to know what effect the -g and -h options have -g avgfilesize The expected average file size for the file system. -h avgfpdir

Re: can we disable AAAA queries in the resolver ?

2003-08-02 Thread David Malone
On Fri, Aug 01, 2003 at 11:52:00PM -0700, Luigi Rizzo wrote: My understanding is that there are multiple buggy components here: my ISP's nameserver certainly shouldn't behave so badly on requests, and the applications should not bother asking queries when the kernel has no ipv6

Re: RAID and NFS exports (Possible Data Corruption)

2003-07-15 Thread David Malone
On Tue, Jul 15, 2003 at 06:26:24AM -0700, Sumit Shah wrote: Here is a message I sent to freebsd-questions and I was hoping I could get some help debugging this. It seems very unlikely that restarting mountd cound cause an error like: ad4: hard error reading fsbn 242727552 The error means

Re: How to delete unix socket entries

2003-06-24 Thread David Malone
On Tue, Jun 24, 2003 at 08:59:49PM +0400, Varshavchick Alexander wrote: I had a wrong-behaved server application which opened a unix socket to respond to incoming connections, so that after the socket was opened, the application core dumped each time it was launched. As a result, 'netstat -f

Re: Locking, locking...

2003-06-02 Thread David Malone
On Mon, Jun 02, 2003 at 09:53:28AM +0200, Pawel Jakub Dawidek wrote: As we all knew size of list could be changed when we were in malloc(). Of course we could check list size again after malloc() and mtx_lock(), but what to do when it was changed? Recall memory allocation? By recall, do you

Re: NFS performance tuning

2003-03-18 Thread David Malone
On Mon, Mar 17, 2003 at 09:02:01PM -0500, John wrote: This is an open ended email with a question about how to increase performance of a 4-stable system running in a high-load environment. The src is current as of: It may be worth chatting to Daniel Ellard, who has some interesting PRs open

Re: IP addresses of bridge interfaces

2003-03-12 Thread David Malone
On Tue, Mar 11, 2003 at 01:17:25PM -0800, Sean Hamilton wrote: I recently upgraded a FreeBSD 4.6.2 bridge to 5.0, and am having troubles with how it handles IP addresses. This problem is due to a rather contraversial change, where packets are only accepted to addressed to the interface they are

Re: 'ticks' in kernel.

2003-03-06 Thread David Malone
On Wed, Mar 05, 2003 at 05:16:20PM -0500, Jan Knepper wrote: Well, I guess since I have not heard any brilliant solutions. Could/should I add a query for 'ticks' to sysctl? I can't suggest a better suggestion off the top of my head, unless it would be better as something which you'd get at

Re: 'ticks' in kernel.

2003-03-04 Thread David Malone
On Tue, Mar 04, 2003 at 02:00:02PM -0500, Jan Knepper wrote: How would they return me the 'value' of 'ticks'? The problem is... I have a value's somewhere that has been assigned from 'ticks', like: ptr - value = ticks; Maybe it would help to explain what you are doing at a higher level?

Re: SCM_CREDS

2003-01-01 Thread David Malone
On Tue, Dec 31, 2002 at 08:40:16PM -0500, Jim Faucette wrote: I'm trying to get a connecting process' PID that's using a UNIX socket. recvmsg makes it appear possible, but so far no good. Has anyone done this before? Can you supply a code sippet??? In the FreeBSD implimentation, the sender

Re: Broken utmp.h

2002-12-12 Thread David Malone
On Thu, Dec 12, 2002 at 02:46:03PM +0100, Jörg Sonnenberger wrote: I am porting terminal emulator from Linux to (Free-)BSD and got a nice error message from #include utmp.h. I am using FreeBSD-current. This file uses int32_t without including stdint.h, so it fails if my sources doesn't include

Re: NFS exports under 4.7-RELEASE

2002-11-17 Thread David Malone
I think you are trying to export the same filesystem to the same list of addresses twice, so you get an error saying it is already exported. David. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: kqueue

2002-09-25 Thread David Malone
On Wed, Sep 25, 2002 at 10:12:53AM +0200, Michel Oosterhof wrote: I've got one more question, actually a fact that surprises me, it seems that tail(1) is the only place in the base system that actually uses kqueue. It is also used in libc for the DNS resolver. Is there a reason for this? I

Re: microuptime() went backwards?

2002-09-20 Thread David Malone
On Fri, Sep 20, 2002 at 10:50:34AM +, zvezdi wrote: I went over the list (hackers) and saw the last discussion on microuptime() which suggested to remove apm0. I have it disabled in my config (by default), but still I see these. APM is disabled in the bios. Removing apm has a

Re: top shows all zeroes.

2002-09-18 Thread David Malone
On Mon, Aug 26, 2002 at 04:30:19PM -0400, Brian T. Schellenberger wrote: | Mine's a laptop with APM enabled (BIOS + kernel). But on the other hand mine's a laptop with APM and it doesn't have the problem. Then again, my kernel is vintage July 19. For people seeing this problem with

Re: top shows all zeroes.

2002-08-26 Thread David Malone
On Sun, Aug 25, 2002 at 04:49:23PM -0700, Patrick Thomas wrote: Also, just to add a bit more info, sometimes instead of rebooting to solve the problem, the problem doesn't exist, and rebooting causes it to manifest. So it seems fairly random. Can you watch vmstat -i before and after the

Re: select()/poll() i kernel.

2002-07-31 Thread David Malone
On Wed, Jul 31, 2002 at 06:30:57PM +0200, Daniel Lundqvist wrote: If anyone has a better solution to this I'm all ears. Couldn't you do all this in userland and use a unix domain socket for communication between your clients and your master process? Then you could use select/poll/kqueue

Re: How to crash FreeBSD for educational purposes?

2002-07-30 Thread David Malone
On Tue, Jul 30, 2002 at 01:15:36PM +0200, Rath, Egon wrote: Or can i force the system to write the current memory content to the dump-device without crashing the whole system? If you compile DDB into the kernel, you can break to the debugger (with ctrl-alt-esc) and then type panic.

Re: dump on mounted fs

2002-07-19 Thread David Malone
Do you check your backups, or does Amanda do it for you? I think dump is on the way out in Linux. I've managed to restore them when needed (despite Redhat's best efforts over the years, including shipping a version of restore that couldn't restore symlinks). In general we don't store users

Re: select() behavior when system date changes precisions.

2002-07-19 Thread David Malone
On Thu, Jul 18, 2002 at 05:58:56PM +0200, Jeremy D'Hoinne wrote: I've forgottent to precise that servers involved use thread library (compilation with -pthread flag) Ahhh - this may explain what you are seeing - I think that the threaded library uses gettimeofday, which would see the time

Re: dump on mounted fs

2002-07-17 Thread David Malone
On Wed, Jul 17, 2002 at 01:29:53AM -0400, Mark W. Krentel wrote: I only recently learned that this doesn't work in Linux and I wanted to check that it's (still?) ok in Freebsd. Apparently, in the 2.4 Linux kernels, the buffer and page caches make it impossible for dump to always get the

Re: how to find offset of a string in a binary file ?

2002-07-13 Thread David Malone
On Sat, Jul 13, 2002 at 12:53:21PM -0700, Luigi Rizzo wrote: So, does anyone know how to use the basic unix tools to find the offset of a string in a binary file ? Specifically, I would like to locate the offset of the string MFS Filesystem goes here Would grep -b do what you want?

Re: ctrl alt del behaviour

2002-07-06 Thread David Malone
On Fri, Jul 05, 2002 at 07:28:16PM -0700, Paulo Roberto wrote: After rebooting to the changes take effect (I do not know if there is a way to reload the keymap withou restarting the system), I try ctrl+alt+del and then it runs the proper halt/shutdown script, but when it was supposed to stop

Re: mount -u strangeness

2002-04-16 Thread David Malone
On Fri, Apr 12, 2002 at 01:05:15PM -0400, PSI, Mike Smith wrote: It may be the correct operation, but if it isn't, having a filesystem change unknowingly (unintentionally) from read only to read/write could be a bit dangerous I would think. mount -u /filesys applies the *default* set of flags

Re: SSE bcopy

2002-04-11 Thread David Malone
On Wed, Apr 10, 2002 at 03:24:20PM -0700, Denis Serenyi wrote: After searching the hackers archives, I'm guessing that this is because FreeBSD 4.3 does not execute the instructions at boot time to enable SSE instructions to be executed, and also because FreeBSD 4.3 does not save the

Re: Hardlinks...

2002-04-08 Thread David Malone
On Mon, Apr 08, 2002 at 02:49:15PM -0500, Dan Nelson wrote: .. or even if isn't, as someone might link it just before you delete it. An attacker can still exhaust your inode quota with 0-length files. I wonder if there is any reason to allow arbitrary hardlinking; maybe only allow linking

Re: PR's in need of a home

2002-03-17 Thread David Malone
On Sat, Mar 16, 2002 at 05:22:03PM -0600, Matthew D. Fuller wrote: - docs/31265 - Documentation (and adjustment) of cron allow/deny file formats Best (IMO, but then, I wrote it ;) patch at end of audit trail. I committed a version of this. - docs/35436 - Webpage update;

Re: Help! serious problem.

2002-03-05 Thread David Malone
On Tue, Mar 05, 2002 at 09:20:14AM -0500, ICA Canada Online wrote: Running FreeBSD 4.5 and it keeps rebooting around the same time late during the night. You are probably using an out of date kernel module. Use ls -l /modules to check the modules were all installed at the same time as the

Re: How to write code in FreeBSD

2002-03-02 Thread David Malone
On Sat, Mar 02, 2002 at 12:57:29PM +0100, Aleksander Rozman - Andy wrote: I was wondering if there are any guidelines how to write code in FreeBSD. I have taken a look at several code of FreeBSD but each is written differently? Problem is I don't know which is preferred way. Most code in

Re: Ancient BSD sources

2002-03-02 Thread David Malone
On Sat, Mar 02, 2002 at 05:11:43AM -0800, sa-tmp wrote: If I were to buy a copy of the Ancient BSD sources CD set (costs $99), would anyone be interested in buying copies [CD-R versions] of the archive for, say $20? Are you're thinking of doing this with the CDs that Krik distributes? If so,

  1   2   3   >