Re: close(2) while accept(2) is blocked

2013-04-06 Thread John-Mark Gurney
Bakul Shah wrote this message on Sat, Mar 30, 2013 at 13:22 -0700: On Sat, 30 Mar 2013 09:14:34 PDT John-Mark Gurney j...@funkthat.com wrote: As someone else pointed out in this thread, if a userland program depends upon this behavior, it has a race condition in it... Thread 1

Re: close(2) while accept(2) is blocked

2013-03-30 Thread John-Mark Gurney
think I remeber another thread about this from a year or two ago, but I couldn't find it... If someone finds it, posting a link would be nice.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: looking for someone to fix humanize_number (test cases included)

2013-03-01 Thread John-Mark Gurney
: From: John-Mark Gurney j...@funkthat.com To: hack...@freebsd.org Subject: looking for someone to fix humanize_number (test cases included) I'm looking for a person who is interested in fixing up humanize_number. ... So I decided to write a test program to test

looking for someone to fix humanize_number (test cases included)

2012-12-23 Thread John-Mark Gurney
I'll work to get the code into the tree once we get it in a good state. Please cc me as I'm not subscribed to -hackers. Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: bus_dmamem_alloc

2008-06-11 Thread John-Mark Gurney
that one person recently was working on Intel's VT IOMMU and I thought it was close to being committed, but I haven't been following the work... If any of these ideas sound feasible, I'd be more than willing to help research/implement/test them. -- John-Mark Gurney

Re: how to use iic(4)

2007-09-24 Thread John-Mark Gurney
, and I don't like it there, as no one knows about most of the tools under there... Maybe if we had a man page that talked about the tools available there it'd be more attractive... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done

Re: strange KASSERT in _sleep()

2007-08-11 Thread John-Mark Gurney
that it will check the condition sometime in the future... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: A few questions...

2007-07-26 Thread John-Mark Gurney
Victor Loureiro Lima wrote this message on Wed, Jul 25, 2007 at 12:14 -0300: 2007/7/24, John-Mark Gurney [EMAIL PROTECTED]: Victor Loureiro Lima wrote this message on Tue, Jul 24, 2007 at 16:35 -0300: 2007/7/24, John-Mark Gurney [EMAIL PROTECTED]: Daniel Molina Wegener wrote this message

Re: A few questions...

2007-07-24 Thread John-Mark Gurney
. #include sys/conf.h uid == UID_ROOT b) Can normal users look for system processes or kernel threads? Yes, ps does this... c) Can root look for system processes or kernel threads? Yes, ps does this... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: A few questions...

2007-07-24 Thread John-Mark Gurney
Victor Loureiro Lima wrote this message on Tue, Jul 24, 2007 at 16:35 -0300: 2007/7/24, John-Mark Gurney [EMAIL PROTECTED]: Daniel Molina Wegener wrote this message on Mon, Jul 23, 2007 at 20:52 -0400: a) Is there any function or variable that tells me which is the root user UID

Re: Audio driver template

2007-07-09 Thread John-Mark Gurney
our pci layer would save the state, which it might not if you write directly to the config registers.) You should also use bus_get_dma_tag for getting the parent tag when creating your own tag w/ bus_dma_tag_create... Can't think of any others right now... -- John-Mark Gurney

Re: New USB stack and Zero copy.

2007-07-04 Thread John-Mark Gurney
for you? If it's to save a copy to another buffer, why don't you load the final buffer into bus_dma? -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd

Re: Gigabit Ethernet w/Jumbo Frames

2007-06-27 Thread John-Mark Gurney
out to make jumbo frames work reliabily and depend upon people just using 1500 byte frames... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd

Re: Gigabit Ethernet w/Jumbo Frames

2007-06-27 Thread John-Mark Gurney
Erik Trulsson wrote this message on Wed, Jun 27, 2007 at 10:12 +0200: On Tue, Jun 26, 2007 at 11:12:23PM -0700, John-Mark Gurney wrote: [EMAIL PROTECTED] wrote this message on Tue, Jun 26, 2007 at 17:33 -0700: I'm having poor luck trying to use NFS over a gigabit ethernet using jumbo

Re: kqueue implementation

2007-05-21 Thread John-Mark Gurney
of events? I'm unsure what you mean by open and read events? Do you mean getting an event when another process opens are file? or? As for read, they work fine for sockets, as w/ select, files are always ready to read even though they may block to read from disk... -- John-Mark Gurney

Re: kqueue implementation

2007-05-21 Thread John-Mark Gurney
Daniel Molina Wegener wrote this message on Mon, May 21, 2007 at 09:48 -0400: On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote: Daniel Molina Wegener wrote this message on Sun, May 20, 2007 at 18:31 -0400: I'm coding an application using the kqueue facility, but I see that I

Re: MIME-ifying sysctl types

2007-05-07 Thread John-Mark Gurney
over time.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: MIME-ifying sysctl types

2007-05-07 Thread John-Mark Gurney
Ivan Voras wrote this message on Mon, May 07, 2007 at 20:12 +0200: John-Mark Gurney wrote: Ivan Voras wrote this message on Mon, May 07, 2007 at 18:39 +0200: My proposal is to MIME-ify the Format fields, best presented in examples: S,proc - x-struct/proc S,xfile - x-struct/xfile

Re: msleep() on recursivly locked mutexes

2007-04-27 Thread John-Mark Gurney
to deal w/ making their driver multithread safe... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: Streaming data from kernel to userland

2007-01-18 Thread John-Mark Gurney
, and I'm real impressed with kqueue api. It was a little daunting figuring out the kernel module side though. If you feeling like extending kqueue(9) to be more helpful, I'm more than willing to review and commit patches for it. -- John-Mark Gurney Voice: +1 415 225

Re: MFS_IMAGE with a DEBUG kernel

2006-12-30 Thread John-Mark Gurney
of kern.post.mk fixes the problem: Thanks, committed the fix... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: taskqueue_drain

2006-11-05 Thread John-Mark Gurney
for testing. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Threading system calls (int 80h)

2006-10-20 Thread John-Mark Gurney
David Xu wrote this message on Tue, Oct 17, 2006 at 17:17 +0800: work in the past. Also rfork() does not allow you to specify user stack, you have to add some tricky code to make it safe before new thread really can do real work, [...] That's why you use rfork_thread(3)... -- John-Mark

Re: Fwd: Removing Giant from a driver

2006-10-20 Thread John-Mark Gurney
knowlege of concurrent programming... You can take a look at books on pthreads and other related matierals for info on using locks... If you figure out the licensing issues w/ the firmware, I'll import the driver into FreeBSD... -- John-Mark Gurney Voice: +1 415 225

Re: global date via module howto

2006-08-21 Thread John-Mark Gurney
module A when you load module B, so that you don't have to type as much... For my bktrau HDTV driver, I only have to load iic, bktrau, and bktr, as each are their own modules, and the i2c bus module automaticly gets brought in by either iic or bktr (as each depend upon the i2c bus)... -- John-Mark

Re: exception handling in kernel code

2006-08-14 Thread John-Mark Gurney
that don't exist and cause a fault... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: exception handling in kernel code

2006-08-14 Thread John-Mark Gurney
Stanislav Sedov wrote this message on Mon, Aug 14, 2006 at 23:12 +0600: On Mon, 14 Aug 2006 11:15:22 -0700 John-Mark Gurney [EMAIL PROTECTED] mentioned: You should make a MD API for reading these out (if one doesn't already exist) that handle the faulting for you, and then have your

Re: jkh weird problem (reading pci device memory)

2006-08-12 Thread John-Mark Gurney
://www.freebsd.org/cgi/man.cgi?query=bus_spaceapropos=0sektion=0manpath=FreeBSD+6.1-RELEASEformat=html -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers

Re: jkh weird problem (reading pci device memory)

2006-08-08 Thread John-Mark Gurney
John Baldwin wrote this message on Tue, Aug 08, 2006 at 13:42 -0400: On Monday 07 August 2006 18:05, John-Mark Gurney wrote: John Baldwin wrote this message on Mon, Aug 07, 2006 at 15:27 -0400: sc-cfg_table.signature = letoh32(bus_read_4(sc-bar.res, 0)); sc-cfg_table.version = letoh16

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread John-Mark Gurney
of useful functions for writing a device driver... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: linux ioremap equivalent on freebsd

2006-08-07 Thread John-Mark Gurney
Niki Denev wrote this message on Mon, Aug 07, 2006 at 22:03 +0300: On Monday 07 August 2006 21:34, John-Mark Gurney wrote: Because for the most part it is only suppose to be used by MD code... The correct way to get device's memory is to use bus_alloc_resource_any... Make sure you review

Re: jkh weird problem (reading pci device memory)

2006-08-07 Thread John-Mark Gurney
, there are the _stream versions... The are useful for transfering data like disk data that needs to maintain the same order... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: [PATCH] adding two new options to 'cp'

2006-07-31 Thread John-Mark Gurney
with porting shell script code :) Helping people not be portable w/ other Unixes like Solaris is something we should not do... Can anyone name another major Unix besides Linux that has the -a option? -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: kqueue doesn't see if_tun

2006-07-24 Thread John-Mark Gurney
does, kqueue will not work on tun... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: Improving FreeBSD's hardware compatibility

2006-07-20 Thread John-Mark Gurney
driver for FreeBSD. I haven't seen this. The only case that I can think of is due to developers not having the hardware, or a need to use said hardware, so nothing happens... Do you have a list of hardware that has documntation available that needs device drivers to be written? -- John-Mark

Re: File Mirror Software

2006-07-10 Thread John-Mark Gurney
files (like 2gb+) as the 10/15 minute timeout can be shorter than the time taken to generate a checksum for the file... Though w/ faster cpu's these days, it's probably no longer the case.. A number of years back, we used it to mirror 140GB of data between sites.. -- John-Mark Gurney

Re: FreeBSD MIDI support

2006-07-10 Thread John-Mark Gurney
program) and it works really well.. We are no longer in the age where we need the kernel to do everything for us... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread John-Mark Gurney
: That is what the bus_space api is for... The method you propose is a hack and not very useful for ensuring that your driver run on other platforms... -- ??: John-Mark Gurney [mailto:[EMAIL PROTECTED] : 2006??6??30?? 6:36 ??: [EMAIL PROTECTED] : freebsd

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread John-Mark Gurney
Gerald Heinig wrote this message on Fri, Jun 30, 2006 at 10:41 +0200: On Fri, 2006-06-30 at 01:16 -0700, John-Mark Gurney wrote: This has now been fixed by making the built in driver return a negative value for the probe.. so your probe routine can return 0, and it will win the probe

Re: Help:why bus resource shortage?

2006-06-29 Thread John-Mark Gurney
bar possition? -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: misc questions about the devicedriver arch

2006-05-24 Thread John-Mark Gurney
has been done already. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: misc questions about the devicedriver arch

2006-05-24 Thread John-Mark Gurney
is accessed by bus_space_read_1 and so on am i right sir? Yep... On 5/24/06, John-Mark Gurney [EMAIL PROTECTED] wrote: william wallace wrote this message on Wed, May 24, 2006 at 15:48 +0800: IN static device_method_t pci_methods[] = { what is the freeBSD's magic to connect pci_read_config_method

Re: The 'ln -s' command

2006-05-23 Thread John-Mark Gurney
$ uname -a FreeBSD gate.funkthat.com 4.7-RELEASE FreeBSD 4.7-RELEASE #5: Tue Sep 9 02:05:39 PDT 2003 [EMAIL PROTECTED]:/usr/src/sys/compile/gate i386 Looks like the EEXIST is returning non-zero... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: misc questions about the devicedriver arch

2006-05-22 Thread John-Mark Gurney
not create a wrapper, and start at the highest requested, and slowly work your way down as the requests are rejected.. since the number of messages must be a power of two, it isn't than many rounds.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has

Re: misc questions about the devicedriver arch

2006-05-20 Thread John-Mark Gurney
. FreeBSD inherently dynamic in its device system. The hardest part of adding hotplug support is programming the bridge. Adding new devices to the tree is easy, but knowing when to add them is hard since you have to write a bridge driver... -- John-Mark Gurney

Re: help:How to map a physical address into a kernel address?

2006-05-11 Thread John-Mark Gurney
the table.. you could use bus_space_write_region to copy the table from kernel memory to your device, or just write the updated values... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: programming question: u_char vs. uint32_t

2006-05-04 Thread John-Mark Gurney
used instead of uint32_t? Aren't pointers always 32 bits on a 32 bit machine? You're confusing the type of the pointer w/ a pointer... These are correct, please read a basic intro to pointers in C... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: Kernel Fatal Trap 12

2006-04-19 Thread John-Mark Gurney
... /me just had a computer randomly crash due to this. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: kqueue oddity

2006-04-01 Thread John-Mark Gurney
of the patch, so had no clue that it was necessary... I'll commit a similar patch shortly... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers

Re: cloning a FreeBSD HDD

2006-03-29 Thread John-Mark Gurney
when copying to a larger second disk, when compared to dd(1). Though if you are using extended attributes, the dump/restore pair won't transfer them... :( -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: newbus questions

2006-03-22 Thread John-Mark Gurney
found that you need to add a MODULE_DEPEND to the module the provides the symbol... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org

Re: newbus questions

2006-03-16 Thread John-Mark Gurney
detection of the different tuner types, and it'll be easier to make fixes to the tuner drivers.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers

Re: IEEE1284 Device ID string for USB Printers

2006-03-15 Thread John-Mark Gurney
can't be ported over. Thanks, Naram Qashat (Note: I'm not subscribed to the mailing list, so if anyone replies to this, please CC me to the response. Thanks.) -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All

Re: Solaris libumem port on the works

2006-03-15 Thread John-Mark Gurney
why I started work on rewriting a allocated based upon the paper so that it'd have a BSD license... I haven't worked on it much, and now that jemalloc is here, who knows... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All

Re: Accessing address space of a process through kld!!

2006-02-27 Thread John-Mark Gurney
the process with pfind(9), and then you can use uio(9) to transfer data into kernel space... Don't forget to PROC_UNLOCK the struct once you are done referencing it. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have

Re: unversal watchdog

2006-02-27 Thread John-Mark Gurney
) for this... You will get an extra argument or two... but a wrapper script can handle that for you... Though you need to have the daemon run in foreground mode, so that when it dies init knows it did, and restarts it... -- John-Mark Gurney Voice: +1 415 225 5579 All

Re: different behaviour on fbsd and linux

2006-02-18 Thread John-Mark Gurney
programs into one binary... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Bad block - file mapping

2006-02-18 Thread John-Mark Gurney
abandoned it.. With a bit of work, ffsrecov.py can be taught this and handle both ufs1 and ufs2... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd

Re: Freeing mmapped memory

2006-02-06 Thread John-Mark Gurney
by the device are unmapped.. it shouldn't be hard to test... the mapping should hold a reference to the device until it's munmapped.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: Freeing mmapped memory

2006-02-06 Thread John-Mark Gurney
Raaf wrote this message on Tue, Feb 07, 2006 at 01:42 +0100: John-Mark Gurney wrote: Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: Hi, i am working on a usb driver that allocates some memory when the device is opened using malloc. Now i want user processes to be able

Re: How to pin a userland page in memory(avoid copyin and copyout)

2006-01-31 Thread John-Mark Gurney
-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: Van Jacobson's network stack restructure

2006-01-31 Thread John-Mark Gurney
cards where the card can dump it directly into the userland buffer w/o having to do the special page flipping thing we can do now... definately some interesting ideas... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread John-Mark Gurney
metadata. I had the same situation ~a month ago and gave up, restoring from old backups. It will also probably panic on corrupted or zeroed metadata, but at least it's on a readable disk... Recovery can be possible with ffsrecov.py: http://people.freebsd.org/~jmg/ffsrecov/ -- John-Mark

Re: Number of kevents registered in kqueue

2005-12-16 Thread John-Mark Gurney
be called on them... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: kqueue/kevent and directories (Was: Equivalent of POLLERR for kqueue.)

2005-12-13 Thread John-Mark Gurney
/papers/kqueue.pdf -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: Object reusement implementation in 6.0release: HELP Wanted!!!

2005-12-08 Thread John-Mark Gurney
in order to fulfill the reusement of data blocks? If you are talking about in kernel land, take a look at zone(9).. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

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

2005-12-06 Thread John-Mark Gurney
with troubles like you have... you should make sure to pass -B to fsck if you want to run fsck while the file system is mounted... Though I've never done that manually (I let the rc scripts handle that for me)... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: Kevent(2) doesn't notify about EVFILT_WRITE filter event

2005-12-01 Thread John-Mark Gurney
of your code around kevent calls, I could better help you... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: Bash scripting -- Usage of arrays

2005-11-29 Thread John-Mark Gurney
), and our sh doesn't have that feature... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: Bash scripting -- Usage of arrays

2005-11-29 Thread John-Mark Gurney
/bin/bash doesn't exist on the system, as bash is installed in /usr/local/bin/bash... Please try with: bash array.sh instead, and see if that works.. On 11/30/05, John-Mark Gurney [EMAIL PROTECTED] wrote: Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: Below is the output

Re: to list all the devices in freebsd definition analyse

2005-11-28 Thread John-Mark Gurney
land, a device_t is a bus if it has one or more children.. To put it more simply, all busses are devices... As for your example of device_get_parent.. you don't realize that the pci bus is also a device... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: to list all the devices in freebsd definition analyse

2005-11-26 Thread John-Mark Gurney
).. and devclass(9).. I'm not quite sure what you are asking here, but take a look at a bunch of the other drivers... My zoran driver (http://people.freebsd.org/~jmg/zoran.html) is both a driver, and a bus for i2c... -- John-Mark Gurney Voice: +1 415 225 5579 All that I

Re: Sharing the same VM address space between Kernel and UserSpace

2005-11-14 Thread John-Mark Gurney
platforms, since each platform may/can have a different code address (though we try to keep them the same)... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: UFS2 max limits?

2005-11-14 Thread John-Mark Gurney
look at my equation that I posted earlier, if you have a blocksize of 16384, you end up with ~128TB as the max file size... K M G T (16384/8)^3*16384 / 1024 / 1024 / 1024 / 1024 == 128 -- John-Mark Gurney Voice: +1 415 225 5579

Re: UFS2 max limits?

2005-11-13 Thread John-Mark Gurney
sizes (not file system sizes) due to the fact that the ufs_daddr_t is smaller (32bits), means it can get more out of the indirect blocks than UFS2 can... UFS1 can have files of 2^58 compared to UFS2's 2^55... -- John-Mark Gurney Voice: +1 415 225 5579 All

Re: UFS2 max limits?

2005-11-13 Thread John-Mark Gurney
John-Mark Gurney wrote this message on Sun, Nov 13, 2005 at 10:17 -0800: as for the file size, The approximate max can be calculated by (blocksize / sizeof(ufs2_daddr_t)) ^ 3 * blocksize the real max would add in addition: (blocksize / sizeof(ufs2_daddr_t)) ^ 2 * blocksize + (blocksize

Re: GEOM for multipath? How?

2005-11-09 Thread John-Mark Gurney
... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: FreeBSD 5/6/7 kernel emulator for NetBSD 2.x

2005-10-27 Thread John-Mark Gurney
name: /dev/tty.usbserial-FTC8P121, which is convient... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: Oddity in libufs.

2005-09-26 Thread John-Mark Gurney
Frank Mayhar wrote this message on Mon, Sep 26, 2005 at 16:11 -0700: On Sun, 2005-09-25 at 21:23 -0700, John-Mark Gurney wrote: Frank Mayhar wrote this message on Sat, Sep 24, 2005 at 20:26 -0700: I've been using libufs as the I/O mechanism for my (heavy) modification of sysutils/ffsrecov

Re: Oddity in libufs.

2005-09-25 Thread John-Mark Gurney
up at: http://people.freebsd.org/~jmg/ffsrecov/ -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-11 Thread John-Mark Gurney
.. Though it might be easier to search for the disklabel magic block directly... It wouldn't be too hard to modify the -f to search for a disklabel magic instead of superblock magic... Good luck! -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has

Re: ntpd and cmos clock update

2005-08-30 Thread John-Mark Gurney
... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Kernel code of reseting/ignoring tcp SYN packets

2005-08-09 Thread John-Mark Gurney
is sys/netinet/tcp_output.c in the function tcp_output... but I'd highly recommend you look at ipfw or divert sockets... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has

Re: [patch] rc.d cleanup

2005-08-01 Thread John-Mark Gurney
-- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: How to reset root passwd FreeBSdD4.7

2005-07-15 Thread John-Mark Gurney
Mike Meyer wrote this message on Thu, Jul 14, 2005 at 09:22 -0400: passwd root Except you have to know the root password for that to work. root is never asked what the old password is... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has

Re: hot path optimizations in uma_zalloc() uma_zfree()

2005-06-30 Thread John-Mark Gurney
done kernel, I'll solely target userland for the code now. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: FreeBSD Memory Management questions ?

2005-06-14 Thread John-Mark Gurney
)... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Possible instruction pipelining problem between HT's on the same die ?

2005-06-03 Thread John-Mark Gurney
-locked instructions don't seem to avoid speculative reads either. have you put a SFENCE between write A and write B? You never tell us where you've tried to put the various fence instructions... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has

Re: a error about the kern_sendit

2005-06-02 Thread John-Mark Gurney
.. st = keta_kern_sendit(td, control_so,msg,0,0); and possibly here... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing

Re: problems with new the contigmalloc routine

2005-05-21 Thread John-Mark Gurney
-current should allow new code to use Giant... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: Porting on FreeBSD 53

2005-05-19 Thread John-Mark Gurney
the correct types when handling them... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: req: New feature to rm? Remove file by the inode number

2005-05-05 Thread John-Mark Gurney
.. -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: So, who makes this one run FreeBSD? ;-)

2005-03-31 Thread John-Mark Gurney
a Soekris, and is slightly larger than the PC-104 form factor.. Right now I have it netbooting, but I need to figure out why I have some ethernet issues... The code is in p4, though if people are really interested, I can generate a patch... -- John-Mark Gurney

Re: So, who makes this one run FreeBSD? ;-)

2005-03-31 Thread John-Mark Gurney
Bernd Walter wrote this message on Thu, Mar 31, 2005 at 23:06 +0200: On Thu, Mar 31, 2005 at 11:12:05AM -0800, John-Mark Gurney wrote: Bernd Walter wrote this message on Thu, Mar 31, 2005 at 12:36 +0200: But considered the small price distance to the smallest Soekris, which runs FreeBSD

Re: So, who makes this one run FreeBSD? ;-)

2005-03-31 Thread John-Mark Gurney
Bernd Walter wrote this message on Fri, Apr 01, 2005 at 00:54 +0200: On Thu, Mar 31, 2005 at 02:33:48PM -0800, John-Mark Gurney wrote: Bernd Walter wrote this message on Thu, Mar 31, 2005 at 23:06 +0200: And the 4526 doesn't need regulated power plus has onboard ata flash. also looks

Re: organization

2005-03-29 Thread John-Mark Gurney
.. then it'd just be pointless... :) -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: organization

2005-03-28 Thread John-Mark Gurney
to this list... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: contributing to fbsd

2005-03-25 Thread John-Mark Gurney
It doesn't layer ontop of kmem_cache though... -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been done, All that I have, has not. ___ freebsd-hackers@freebsd.org mailing list http

Re: How to send a signal from inside the kernel?

2005-03-17 Thread John-Mark Gurney
)... and then PROC_UNLOCK the struct proc after you've used psignal... so: struct proc *p; p = pfind(pid); if (p != NULL) { psignal(p, SIGUSR1); PROC_UNLOCK(p); } I haven't tried the code above, but that should do what you want... -- John-Mark Gurney Voice: +1 415

Re: How to send a signal from inside the kernel?

2005-03-17 Thread John-Mark Gurney
(on RELENG_4)... so you could should just include sys/param.h, and ditch sys/types.h and unistd.h and it should work... #include sys/lock.h #include sys/mutex.h #include sys/proc.h -- John-Mark Gurney Voice: +1 415 225 5579 All that I will do, has been

  1   2   3   >