-reply:<4b7f7f02.1000...@freebsd.org>

2010-02-20 Thread Thomas Schmitt
Hi > I was looking at your Linux code here and thought > the technique of trying lseek(SEEK_END) might work. Linux 2.6.18, /dev/hda and /dev/sr0, with a CD-RW written by write type TAO lseek(fd, 0, SEEK_END)= 636499968 lseek(fd, -1, SEEK_END)=636499967 lseek(fd, -300k, SEEK_END)= 6361927

Re: ntpd hangs under FBSD 8

2010-02-20 Thread R. Tyler Ballance
On Fri, 19 Feb 2010, Peter Steele wrote: > I posted this originally on the -questions list but did not make any headway. > We have an application where the user can change the date/time via a GUI. One > of the options the user has is to specify that the time is to be synced using > ntp. Our co

Re: GEOM_ULZMA

2010-02-20 Thread Adrian Chadd
On 20 February 2010 04:26, Alex RAY wrote: > :) No, I don`t think about "magically faster", now I near to release FreeBSD > firmware for D-Link DIR-320 router which have only 4MB of flash memory. Maybe > in next time I try to make it for some router with only 2MB of flash. In that > way, > I n

Re: "tar tfv /dev/cd0" speedup patch

2010-02-20 Thread Juergen Lock
On Fri, Feb 19, 2010 at 09:20:30PM -0800, Tim Kientzle wrote: > Juergen, Hi! > > I was looking at your Linux code here and thought > the technique of trying lseek(SEEK_END) might work. > Unfortunately, it doesn't: lseek(fd, 0, SEEK_END) gives > zero for both /dev/sa0 (a tape drive) and /dev/cd0 >

Re: "tar tfv /dev/cd0" speedup patch

2010-02-20 Thread Juergen Lock
On Sat, Feb 20, 2010 at 01:00:40AM -0500, Jung-uk Kim wrote: > On Saturday 20 February 2010 12:20 am, Tim Kientzle wrote: > > Juergen, > > > > I was looking at your Linux code here and thought > > the technique of trying lseek(SEEK_END) might work. > > Unfortunately, it doesn't: lseek(fd, 0, SEEK_E

Building FreeBSD on a linux FC11 box.

2010-02-20 Thread Patrick Mahan
Hopefully, this is not too ignorant a question. But has anyone every built the FreeBSD sources, both kernel and apps, on a linux platform? I did a google on 'cross-compile freebsd (linux)' and found (mostly) discussions regarding building the linux apps for FreeBSD, but not for building a FreeB

Re: GEOM_ULZMA

2010-02-20 Thread Alex RAY
Hi, On Sat, 20 Feb 2010 22:36:02 +0800 Adrian Chadd wrote: > On 20 February 2010 04:26, Alex RAY wrote: > > > :) No, I don`t think about "magically faster", now I near to release > > FreeBSD firmware for D-Link DIR-320 router which have only 4MB of flash > > memory. Maybe in next time I try

Re: GEOM_ULZMA

2010-02-20 Thread Adrian Chadd
Oh I know that! I'm just saying that I may try lzma'ing the kernel and rootfs's to see what kind of savings I get over gzip. :) Adrian On 21 February 2010 02:15, Alex RAY wrote: > Hi, > > On Sat, 20 Feb 2010 22:36:02 +0800 > Adrian Chadd wrote: > >> On 20 February 2010 04:26, Alex RAY wrote:

Re: Building FreeBSD on a linux FC11 box.

2010-02-20 Thread R. Tyler Ballance
On Sat, 20 Feb 2010, Patrick Mahan wrote: > > Hopefully, this is not too ignorant a question. But has anyone every > built the FreeBSD sources, both kernel and apps, on a linux platform? > > I did a google on 'cross-compile freebsd (linux)' and found (mostly) > discussions regarding building t

Re: "tar tfv /dev/cd0" speedup patch

2010-02-20 Thread Duane H. Hesser
Tim and Juergen I have a couple of suggestions which may help you with what you are trying to do. First, though, I can confirm that Unix character special tape drivers since at least V7 have always ignored seeks. They happily return the requested offset without feeling the need to actually *do*

Re: "tar tfv /dev/cd0" speedup patch

2010-02-20 Thread Tim Kientzle
Duane H. Hesser wrote: I have a couple of suggestions which may help you with what you are trying to do. First, though, I can confirm that Unix character special tape drivers since at least V7 have always ignored seeks. They happily return the requested offset without feeling the need to actua

Re: GEOM_ULZMA

2010-02-20 Thread Tim Kientzle
b. f. wrote: The code organization depends on what you want to do with it and how you want to update the code in the future, if your lzma library is third party. LZMA made by Igor Pavlov, and since 4.62 it licensed under Public Domain. So we can use it, if we need. If you never intend to updat

Re: GEOM_ULZMA

2010-02-20 Thread b. f.
>> The code organization depends on what you want to do with it and how you >> want to update the code in the future, if your lzma library is third party. > >LZMA made by Igor Pavlov, and since 4.62 it licensed under Public Domain. >So we can use it, if we need. > >> >> If you never intend to updat