Re: Linux version of libusb that works with FreeBSD

2007-12-17 Thread Daniel O'Connor
On Mon, 17 Dec 2007, Alexander Leidinger wrote: The thing I am not sure about is how ioctl's would get mangled on the way through. They get interpreted as linux ioctl, as they are handled by the linuxulator. You could try to write a wrapper there... Yeah.. Maybe an FS approach would be

Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Yuri
I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. Now 'mount' command shows: /dev/da0s1 on /mnt/camera (msdosfs, local) 'umount /dev/da0s1' command tells that device is not configured correctly.

Re: Linux version of libusb that works with FreeBSD

2007-12-17 Thread Alexander Leidinger
Quoting Daniel O'Connor [EMAIL PROTECTED] (from Mon, 17 Dec 2007 16:26:58 +1030): I am wondering if anyone has tried building such a beast? ie a Lunux libusb that will be able to access devices in FreeBSD.. The reason I'd like it is that I want to use this http://rmdir.de/~michael/xilinx/ in

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Dimitry Andric
Yuri wrote: I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. I've understood that the only solution to this currently is don't do that then. :) ___

boot0 code mystery

2007-12-17 Thread M.Girish Rao
Hi, I am reading the code for boot0 (/usr/src/sys/boot/i386/boot0/boot0.S). This is the part i am trying to understand: /* * Initialise segments and registers to known values. * segments

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Romain Tartière
Hi On Mon, Dec 17, 2007 at 03:07:02AM -0800, Yuri wrote : I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. Personal recipe when this kind of things happens (generally caused by a camera

Re: boot0 code mystery

2007-12-17 Thread Jeremy Chadwick
On Mon, Dec 17, 2007 at 07:16:02PM +0530, M.Girish Rao wrote: Whats the memory location of start? I'm going off of memory of my old x86 days, so be kind to me. :-) By the look of it, it's BOOT_BOOT0_ORG, which is 0x600. I'm basing this on the flags passed to cc (actually ld) during linktime.

Re: Linux version of libusb that works with FreeBSD

2007-12-17 Thread Alexander Leidinger
Quoting Daniel O'Connor [EMAIL PROTECTED] (from Mon, 17 Dec 2007 21:39:39 +1030): On Mon, 17 Dec 2007, Alexander Leidinger wrote: AFAIR HPS' USB stack has linux compatibility, maybe you should ask him / have a look at it. I had a look at the code but I can't see any Linux related code.

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Romain Tartière
On Mon, Dec 17, 2007 at 08:58:27AM -0600, Sergey Babkin wrote : Would not umount -f do the trick? I tried it without particular care one time on a failing device and experienced an instant system reboot (was it caused by the faulty disk or by a limitation in the implementation of the system

Re: Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Sergey Babkin
On Mon, Dec 17, 2007 at 03:07:02AM -0800, Yuri wrote : I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. Personal recipe when this kind of things happens (generally caused by a camera switching

Re: Disk sync at shutdown and fusefs filesystems

2007-12-17 Thread Csaba Henk
On 2007-12-17, Alejandro Pulver [EMAIL PROTECTED] wrote: quote - Some got hung in unmount issues are to be sorted out (these appeared on Linux, and they might or might not appear on FreeBSD). /quote IIRC you are saying that any user could make umount hang. And you said this is an

Re: Disk sync at shutdown and fusefs filesystems

2007-12-17 Thread Alejandro Pulver
On Mon, 17 Dec 2007 17:41:16 +0100 Csaba Henk [EMAIL PROTECTED] wrote: [This message has also been posted to gmane.os.freebsd.devel.hackers.] On 2007-12-17, Alejandro Pulver [EMAIL PROTECTED] wrote: quote - Some got hung in unmount issues are to be sorted out (these appeared on Linux,

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Peter Jeremy
On Mon, Dec 17, 2007 at 03:07:02AM -0800, Yuri wrote: I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. This triggers known and extremely painful to fix bugs in FreeBSD. Your best work-around is to

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Yuri
I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. I submitted this late at night. Now in the morning another solution came to my mind. I thought I will find it in replies but I didn't. In case

Re: kqueue and libev

2007-12-17 Thread James Mansion
Kip Macy wrote: he's just plain misinforme Until we know what he is referring to we can't actually say that. -Kip OK he said I could post from our private email so here goes. There were bits in and around relating to the Solaris /dev/poll support (and the mechanism's limitations) which

Re: kqueue and libev

2007-12-17 Thread Kip Macy
On Dec 17, 2007 1:25 PM, James Mansion [EMAIL PROTECTED] wrote: Kip Macy wrote: he's just plain misinforme Until we know what he is referring to we can't actually say that. -Kip OK he said I could post from our private email so here goes. There were bits in and around relating to the

Re: Large array in KVM

2007-12-17 Thread John Baldwin
On Friday 07 December 2007 06:23:51 am Jeremy Chadwick wrote: On Fri, Dec 07, 2007 at 10:43:00AM +0100, Gerald Heinig wrote: Hi Sonja, Hi everyone. I'm working on a kernel module that needs to maintain a large structure in memory. As this structure could grow too big to be

Re: kqueue and libev

2007-12-17 Thread James Mansion
Kip Macy wrote: Do you have a set of regression tests for libev? It sounds like they would worth having to regression test kqueue. I would have thought that libevent and libev should both the checked against kqueue. Also APR and everything else that has support. I'm not the author of libev

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Antony Mawer
On 18/12/2007 5:09 AM, Peter Jeremy wrote: On Mon, Dec 17, 2007 at 03:07:02AM -0800, Yuri wrote: I had USB camera connected and recognized as umass0 and mounted as /mnt/camera on /dev/da0s1. Camera was disconnected while it was still mounted. This triggers known and extremely painful to fix

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Romain Tartière
On Mon, Dec 17, 2007 at 10:32:48AM -0800, Yuri wrote : In case of USB device (which device in question in this problem happens to be) usbd can be used to mount it. If attach/detach events trigger mount/unmount commands this problem shouldn't exist. I didn't try though. The problem is that

Re: Stale mount on disconnected device: how to delete it?

2007-12-17 Thread Romain Tartière
Hi Antony, On Tue, Dec 18, 2007 at 09:36:19AM +1100, Antony Mawer wrote : Every time this comes up it's branded with the really hard to fix message, but I seem to recall the last time this came up Matt Dillon chimed in and said he'd managed to fix it in Dragonfly without too much pain. I

Re: Linux version of libusb that works with FreeBSD

2007-12-17 Thread Daniel O'Connor
On Mon, 17 Dec 2007, Mike Meyer wrote: On Mon, 17 Dec 2007 16:26:58 +1030 Daniel O'Connor [EMAIL PROTECTED] wrote: I am wondering if anyone has tried building such a beast? ie a Lunux libusb that will be able to access devices in FreeBSD.. Well, the devel/libusb port builds out of the box

version hwpmc kernel module pmc library not match

2007-12-17 Thread binto
Hi, i run command for kernel profiling purpose: pmcstat -S instructions -O /tmp/sample.out and i get error: pmcstat: ERROR: Initialization of the pmc(3) library failed: No such file or directory I've compile my FreeBSD 6.3-PRERELEASE kernel in i386 machine : device hwpmc options HWPMC_HOOKS

Re: version hwpmc kernel module pmc library not match

2007-12-17 Thread Kip Macy
Check ports 'cpuid' - Vendor ID: GenuineIntel; CPUID level 10 Intel-specific functions: Version 06f6: Type 0 - Original OEM Family 6 - Pentium Pro Model 15 - Extended model 0 Stepping 6 Reserved 0 Odds are you have a post-P4 Intel processor. -Kip On Dec 17, 2007 7:47 PM, binto [EMAIL

Re: version hwpmc kernel module pmc library not match

2007-12-17 Thread binto
check with cpuid: Vendor ID: GenuineIntel; CPUID level 10 Intel-specific functions: Version 06f7: Type 0 - Original OEM Family 6 - Pentium Pro Model 15 - Extended model 0 Stepping 7 Reserved 0 Extended brand string: Intel(R) Xeon(R) CPU E5335 @ 2.00GHz CLFLUSH instruction cache