Message-ID: <4DKG01$Ce4@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 69, Issue 9
Date: Thu, 22 Jul 2004 05:26:25 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!pd7cy2so!shaw.ca!sjc1.usenetserver.com!news.usenetserver.com!news.neu.edu.cn!news2.happynet.org!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1090473985.A
Lines: 1914
Xref: 74.82.202.154 cn.bbs.comp.unix:1372
Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: Any idea why timespec* is _KERNEL stuff only? (Xin LI)
2. Re: Any idea why timespec* is _KERNEL stuff only?
(Poul-Henning Kamp)
3. Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes) (Maxim Maximov)
4. Re: FAILURE - ATAPI_RESET no interrupt in newer current
(Divacky Roman)
5. Re: Any idea why timespec* is _KERNEL stuff only?
(David Wolfskill)
6. panic: sched_rem: KSE not on run queue (Karel J. Bosschaart)
7. Re: nanosleep returning early (Bruce Evans)
8. Re: Any idea why timespec* is _KERNEL stuff only? (Bruce Evans)
9. Re: NEW TAR (Jan Grant)
10. Re: About ISC-cron (Xin LI)
11. Re: FreeBSD embedded: TinyBSD (Jean Milanez Melo)
12. Re: Excellent job on the firewire support! (Andrew Gallatin)
13. Re: FAILURE - ATAPI_RESET no interrupt in newer current
(Kevin Oberman)
14. Re: Excellent job on the firewire support! (Doug Rabson)
15. Re: fetch hangs, part 2 (Daniel Lang)
16. Re: Excellent job on the firewire support! (Andrew Gallatin)
17. Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes) (Brian Fundakowski Feldman)
18. Re: Any idea why timespec* is _KERNEL stuff only? (Xin LI)
19. Re: NEW TAR (Daniel Lang)
20. Re: NEW TAR (Harti Brandt)
21. Re: FreeBSD embedded: TinyBSD (pablo.morales@abitab.com.uy)
22. Re: fetch hangs, part 2 (Andre Oppermann)
23. [current tinderbox] failure on ia64/ia64 (FreeBSD Tinderbox)
24. Re: vmnet.ko missing - but it's there! - vmware and crashes
(Scott Long)
25. Re: vmnet.ko missing - but it's there! - vmware and crashes
(Robert Watson)
26. panic: mb_init_pack(): Can't deal with failure yet. (Greg Skafte)
27. Re: FAILURE - ATAPI_RESET no interrupt in newer current
(Joseph Peterson)
28. Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes) (Sam Leffler)
29. Re: NEW TAR (Brooks Davis)
30. Re: Any idea why timespec* is _KERNEL stuff only?
(Poul-Henning Kamp)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jul 2004 20:12:06 +0800
From: Xin LI <delphij@frontfree.net>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040721121206.GA746@frontfree.net>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 21, 2004 at 01:36:45PM +0200, Poul-Henning Kamp wrote:
> >Hi, Poul-Henning,
> >
> >It seems that rev. 1.23 of sys/sys/time.h has constrained timespec* macros
> >to be _KERNEL (KERNEL in the old days) only. Is this intended? (NetBSD and
> >OpenBSD don't expect _KERNEL for these macros, e.g. timespeccmp, and I
> >personally think that these macros will be better for more generic use,
> >as timespec structure is not _KERNEL protected :-)
>
> I agree. I belive I made the _KERNEL only due to pressure from the
> standards people or possibly bde@, can't remember to be honest.
Oh... Shall I ask for a review for a change of the current behavior, or have m
y
own version of timespec* macros in my program, for compability reasons?
Cheers,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040721/
bfca46a9/attachment-0001.bin
------------------------------
Message: 2
Date: Wed, 21 Jul 2004 14:19:03 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
To: Xin LI <delphij@frontfree.net>
Cc: freebsd-current@freebsd.org
Message-ID: <82975.1090412343@critter.freebsd.dk>
In message <20040721121206.GA746@frontfree.net>, Xin LI writes:
>Oh... Shall I ask for a review for a change of the current behavior, or hav=
>e my
>own version of timespec* macros in my program, for compability reasons?
I belive this is a question for our standards people... I belive they
have a mail-list of their own, probably standards@freebsd.org
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 3
Date: Wed, 21 Jul 2004 15:18:48 +0400
From: Maxim Maximov <mcsi@mcsi.pp.ru>
Subject: Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes)
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: Jake Hamby <jhamby@anobject.com>
Message-ID: <40FE5118.3040900@mcsi.pp.ru>
Content-Type: text/plain; charset=us-ascii; format=flowed
Brian Fundakowski Feldman wrote:
> On Wed, Jul 21, 2004 at 12:04:22AM -0700, Julian Elischer wrote:
>
>>Jake Hamby wrote:
>>
>>>3) Random freezes
>>
>>>After an average of 30-40 minutes of heavy usage, I get random system
>>>freezes. I am typically running XFree86 and downloading something
>>>or reading web pages at the time it happens. More disturbingly, I am
>>>occasionally seeing files get renamed, for example
>>>/usr/src/UPDATING.64BIT became /usr/src/UPDATING.64BTT. This happens
>>>with or without WITNESS, with INVARIANTS enabled, with or without
>>>ACPI, and with or without SMP. I am using SCHED_ULE and no
>>>PREEMPTION.
>>
>>you are not alone.. I think you just chose a bad moment to
>>jump into -current
>>:-/
>
>
> Who else is getting random memory corruption? I've only ever seen it
> in my life with bad RAM/bad cooling, but this could be bad anything,
> including something spamming random addresses with DMA. The characters
> 'I' and 'T' are far enough apart such that I wouldn't expect a simple
> memory error which usually seems to appear as a single bit flip.
What are you guys all smoking? 64BTT stands for "64 bit time_t"
http://www.freebsd.org/cgi/cvsweb.cgi/src/UPDATING.64BTT
--
Maxim Maximov
------------------------------
Message: 4
Date: Wed, 21 Jul 2004 14:36:06 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: Re: FAILURE - ATAPI_RESET no interrupt in newer current
To: Andreas Kohn <andreas.kohn@gmx.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040721123606.GA90043@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 21, 2004 at 01:02:43AM +0200, Andreas Kohn wrote:
> Hi,
>
> today I updated my -CURRENT from ~July 5 to July 20 sources. After
> reboot with the new kernel, I saw this:
>
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: CDRW <TOSHIBA DVD-ROM SD-R1002> at ata1-master WDMA2
>
> With the old kernel, die FAILURE message was not there, but the acd0 was
> running in WDMA2 mode as well.
>
> This is a
> atapci0: <VIA 8235 UDMA133 controller> port
> 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
> controller.
>
> Is this message to be expected, or should I worry about anything?
>
> Regards,
> Andreas Kohn
via8235 ata controller was marked as AST broken and doesnt not get timing set
anymore... I am not sure whtere this is correct - linux does so...
anyway - if its bening dont worry ;)
roman
------------------------------
Message: 5
Date: Wed, 21 Jul 2004 05:43:26 -0700 (PDT)
From: David Wolfskill <david@catwhisker.org>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
Cc: freebsd-current@freebsd.org
Message-ID: <200407211243.i6LChPdo007782@bunrab.catwhisker.org>
>To: Xin LI <delphij@frontfree.net>
>From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
>Date: Wed, 21 Jul 2004 14:19:03 +0200
>Cc: freebsd-current@freebsd.org
>Subject: Re: Any idea why timespec* is _KERNEL stuff only?
>Sender: owner-freebsd-current@freebsd.org
>>Oh... Shall I ask for a review for a change of the current behavior, or hav=
>>e my
>>own version of timespec* macros in my program, for compability reasons?
>I belive this is a question for our standards people... I belive they
>have a mail-list of their own, probably standards@freebsd.org
Correct.
Peace,
david (current hat: postmaster@freebsd.org)
--
David H. Wolfskill david@catwhisker.org
I do not "unsubscribe" from email "services" to which I have not explicitly
subscribed. Rather, I block spammers' access to SMTP servers I control,
and encourage others who are in a position to do so to do likewise.
------------------------------
Message: 6
Date: Wed, 21 Jul 2004 14:49:08 +0200
From: "Karel J. Bosschaart" <karelj@kayjay.xs4all.nl>
Subject: panic: sched_rem: KSE not on run queue
To: freebsd-current@freebsd.org
Message-ID: <20040721124907.GA69115@kayjay.xs4all.nl>
Content-Type: text/plain; charset=us-ascii
Hi,
Running -current as of yesterday (07/20), GENERIC kernel. Hangs happen
frequently on this machine (about 5 times a day). I got a crash dump, would
it be useful to someone?
Karel.
Script started on Wed Jul 21 14:31:57 2004
phys9911# gdb6 -k /[Kkernel.debug /usr/crash/vmcore.8
GNU gdb 20040720 [GDB v6.x for FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd5.2"...
panic: sched_rem: KSE not on run queue
panic messages:
---
panic: sched_rem: KSE not on run queue
cpuid = 0;
KDB: enter: panic
panic: from debugger
cpuid = 0;
Uptime: 2h31m58s
Dumping 247 MB
16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
#0 doadump () at pcpu.h:159
159 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
doadump () at pcpu.h:159
159 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
Ready to go. Enter 'tr' to connect to the remote target
with /dev/cuaa0, 'tr /dev/cuaa1' to connect to a different port
or 'trf portno' to connect to the remote target with the firewire
interface. portno defaults to 5556.
Type 'getsyms' after connection to load kld symbols.
If you're debugging a local system, you can use 'kldsyms' instead
to load the kld symbols. That's a less obnoxious interface.
(kgdb) bt
#0 doadump () at pcpu.h:159
During symbol reading, Incomplete CFI data; unspecified registers at 0xc05efc2
8.
#1 0xc05f0154 in boot (howto=0x104) at /usr/src/sys/kern/kern_shutdown.c:392
#2 0xc05f046b in panic (fmt=0xc079ef47 "from debugger") at /usr/src/sys/kern/
kern_shutdown.c:554
#3 0xc045eb71 in db_panic (addr=0xc0606c3f, have_addr=0x0, count=0xffffffff,
modif=0xd4f84a78 "")
at /usr/src/sys/ddb/db_command.c:434
#4 0xc045eb08 in db_command (last_cmdp=0xc0875724, cmd_table=0x0, aux_cmd_tab
lep=0xc07f6c34,
aux_cmd_tablep_end=0xc07f6c4c) at /usr/src/sys/ddb/db_command.c:348
#5 0xc045ebd0 in db_command_loop () at /usr/src/sys/ddb/db_command.c:454
#6 0xc04604a5 in db_trap (type=0x3, code=0x0) at /usr/src/sys/ddb/db_main.c:2
19
#7 0xc0606e99 in kdb_trap (type=0x3, code=0x0, tf=0xd4f84bbc) at /usr/src/sys
/kern/subr_kdb.c:387
#8 0xc076ad04 in trap (frame=
{tf_fs = 0xd4f80018, tf_es = 0xc0600010, tf_ds = 0xc07d0010, tf_edi = 0x
c07d3b55, tf_esi = 0x1, tf_ebp = 0xd4f84bfc, tf_isp = 0xd4f84be8, tf_ebx = 0xd
4f84c28, tf_edx = 0x0, tf_ecx = 0xc1014000, tf_eax = 0x12, tf_trapno = 0x3, tf
_err = 0x0, tf_eip = 0xc0606c3f, tf_cs = 0x8, tf_eflags = 0x86, tf_esp = 0xd4f
84c1c, tf_ss = 0xc05f041d})
at /usr/src/sys/i386/i386/trap.c:576
#9 0xc0759a7a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#10 0xd4f80018 in ?? ()
#11 0xc0600010 in sched_runnable () at /usr/src/sys/kern/sched_ule.c:1492
#12 0xc05f041d in panic (fmt=0xc07d3b55 "sched_rem: KSE not on run queue") at
/usr/src/sys/kern/kern_shutdown.c:538
#13 0xc060045a in sched_rem (td=0x0) at /usr/src/sys/kern/sched_ule.c:1668
#14 0xc05f5671 in setrunqueue (td=0xc2056b00) at /usr/src/sys/kern/kern_switch
.c:362
#15 0xc05ffb1e in sched_wakeup (td=0xc2056b00) at /usr/src/sys/kern/sched_ule.
c:1251
#16 0xc05f68b8 in setrunnable (td=0xc2056b00) at /usr/src/sys/kern/kern_synch.
c:408
#17 0xc060c45a in sleepq_resume_thread (td=0xc2056b00, pri=0xffffffff) at /usr
/src/sys/kern/subr_sleepqueue.c:632
#18 0xc060c4f4 in sleepq_signal (wchan=0xc18ee7dc, flags=0xc2056b00, pri=0xfff
fffff)
at /usr/src/sys/kern/subr_sleepqueue.c:662
#19 0xc05f65a7 in wakeup_one (ident=0xc18ee7dc) at /usr/src/sys/kern/kern_sync
h.c:278
#20 0xc05e167b in thread_userret (td=0xc1efa000, frame=0xd4f84d48) at /usr/src
/sys/kern/kern_kse.c:1191
#21 0xc060d410 in userret (td=0xc1efa000, frame=0xd4f84d48, oticks=0x0) at /us
r/src/sys/kern/subr_trap.c:118
#22 0xc076ad9c in trap (frame=
{tf_fs = 0xbfbf002f, tf_es = 0x280c002f, tf_ds = 0xbfbf002f, tf_edi = 0x
280bbf00, tf_esi = 0x2c4c0ae0, tf_ebp = 0xbfbfd424, tf_isp = 0xd4f84d74, tf_eb
x = 0x2c4c0bac, tf_edx = 0x13, tf_ecx = 0x292c022c, tf_eax = 0x2c2c233c, tf_tr
apno = 0xc, tf_err = 0x4, tf_eip = 0x2c2c1fe0, tf_cs = 0x1f, tf_eflags = 0x102
86, tf_esp = 0xbfbfd408, tf_ss = 0x2f})
at /usr/src/sys/i386/i386/trap.c:635
#23 0xc0759a7a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#24 0xbfbf002f in ?? ()
#25 0x280c002f in ?? ()
#26 0xbfbf002f in ?? ()
#27 0x280bbf00 in ?? ()
#28 0x2c4c0ae0 in ?? ()
#29 0xbfbfd424 in ?? ()
#30 0xd4f84d74 in ?? ()
#31 0x2c4c0bac in ?? ()
#32 0x00000013 in ?? ()
#33 0x292c022c in ?? ()
#34 0x2c2c233c in ?? ()
#35 0x0000000c in ?? ()
#36 0x00000004 in ?? ()
#37 0x2c2c1fe0 in ?? ()
#38 0x0000001f in ?? ()
#39 0x00010286 in ?? ()
#40 0xbfbfd408 in ?? ()
#41 0x0000002f in ?? ()
#42 0x00046a3c in ?? ()
#43 0x00000008 in ?? ()
#44 0x00046a44 in ?? ()
#45 0x00000008 in ?? ()
#46 0x08a8e000 in ?? ()
#47 0xc150a580 in ?? ()
#48 0xc18e9ba0 in ?? ()
#49 0xd4f84ae8 in ?? ()
#50 0xd4f84ad0 in ?? ()
#51 0xc1efa000 in ?? ()
#52 0xc05ff943 in sched_switch (td=0x2c4c0bac, newtd=0x280bbf00) at /usr/src/s
ys/kern/sched_ule.c:1172
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit
phys9911# exit
exit
Script done on Wed Jul 21 14:32:34 2004
------------------------------
Message: 7
Date: Wed, 21 Jul 2004 23:01:20 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: nanosleep returning early
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040721220405.Y2346@epsplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 21 Jul 2004, Brian Fundakowski Feldman wrote:
> On Wed, Jul 21, 2004 at 06:13:10PM +1000, John Birrell wrote:
> >
> > Today I increased HZ in a current kernel to 1000 when adding dummynet.
> > Now I find that nanosleep regularly comes back a little early.
> > Can anyone explain why?
The most obvious bug is that nanosleep() uses the low-accuracy interface
getnanouptime(). I can't see why the the problem is more obvious with
large HZ or why it affects short sleeps. From kern_time.c 1.170:
% static int
% nanosleep1(struct thread *td, struct timespec *rqt, struct timespec *rmt)
% {
% struct timespec ts, ts2, ts3;
% struct timeval tv;
% int error;
%
% if (rqt->tv_nsec < 0 || rqt->tv_nsec >= 1000000000)
% return (EINVAL);
% if (rqt->tv_sec < 0 || (rqt->tv_sec == 0 && rqt->tv_nsec == 0))
% return (0);
% getnanouptime(&ts);
This may lag the actual (up)time by 1/HZ seconds.
% timespecadd(&ts, rqt);
So we get a final time that may be 1/HZ seconds too small.
% TIMESPEC_TO_TIMEVAL(&tv, rqt);
Rounding to microseconds doesn't make much difference since things
take on the order of 1uS.
% for (;;) {
% error = tsleep(&nanowait, PWAIT | PCATCH, "nanslp",
% tvtohz(&tv));
We only converted to a timeval so that we could use tvtohz() here.
tvtohz() rounds up to the tick boundary after the next one to allow
for the 1/HZ resolution of tsleep(). This should also mask the
inaccuracy of getnanouptime() unless the sleep returns early due
to a signal -- in the usual case of not very long sleeps that are
not killed by a signal, the tsleep() guarantees sleeping long enough
and sleeps (1/2*1/HZ) extra on average.
% getnanouptime(&ts2);
% if (error != EWOULDBLOCK) {
% if (error == ERESTART)
% error = EINTR;
% if (rmt != NULL) {
% timespecsub(&ts, &ts2);
% if (ts.tv_sec < 0)
% timespecclear(&ts);
% *rmt = ts;
This handles the case of being killed by a signal. Then we always return
early, and the bug is just that returned time-not-slept is innacurate.
% }
% return (error);
% }
% if (timespeccmp(&ts2, &ts, >=))
% return (0);
This handles the case where the timeout expires. We check that the
specified sleep time has expired, not just that some number of ticks
expired, since the latter may be too short for long sleeps even after
rounding it up.
% ts3 = ts;
% timespecsub(&ts3, &ts2);
% TIMESPEC_TO_TIMEVAL(&tv, &ts3);
Errors may accumulate (or cancel?) for the next iteration.
% }
% }
> > I would have expected that the *overrun* beyond the required time to vary,
> > but never that it would come back early.
>
> Is this a difference from clock_gettime(CLOCK_MONOTONIC)? You really
> shouldn't be using gettimeofday() foor internal timing since the
> system clock can be adjusted by NTP.
The monotonic clock can also be adjusted by NTP, and normally is if there
are any NTP adjustments at all (the uptime and the time use the same
timecounter which is adjusted by NTP). NTP's adjustments are only limited
to CLOCK_REALTIME when NTP steps the clock for initialization. Stepping
the clock causes other time warps and should never be used.
Bruce
------------------------------
Message: 8
Date: Wed, 21 Jul 2004 23:37:40 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
To: Xin LI <delphij@frontfree.net>
Cc: current@freebsd.org
Message-ID: <20040721232310.Y2587@epsplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 21 Jul 2004, Xin LI wrote:
> Hi, Poul-Henning,
>
> It seems that rev. 1.23 of sys/sys/time.h has constrained timespec* macros
> to be _KERNEL (KERNEL in the old days) only. Is this intended? (NetBSD and
Yes, this is intended. The timeval and timespec interfaces are optimized
for handling times in code that can't use 64-bit integers or floating
point (mainly in 20 year old kernels). New interfaces to manipulate them
should not be added 20 years after the interfaces should have been
deprecated.
> OpenBSD don't expect _KERNEL for these macros, e.g. timespeccmp, and I
> personally think that these macros will be better for more generic use,
NetBSD and OpenBSD originally only had timeval*(), and FreeBSD unfortunately
had to add them to be compatible. timespec*() seem to be even less needed
in userland than timeval*(), since no ports are broken by not having them.
> as timespec structure is not _KERNEL protected :-)
The timespec struct is POSIX standard. POSIX has the correct number of
functions for operating on timespec structs (none).
Bruce
------------------------------
Message: 9
Date: Wed, 21 Jul 2004 14:44:42 +0100 (BST)
From: Jan Grant <Jan.Grant@bristol.ac.uk>
Subject: Re: NEW TAR
To: Stefan Bethke <stb@lassitu.de>
Cc: Peter Jeremy <PeterJeremy@optushome.com.au>
Message-ID: <Pine.GSO.4.61.0407211440210.28037@mail.ilrt.bris.ac.uk>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 20 Jul 2004, Stefan Bethke wrote:
> Am 20.07.2004 um 10:10 schrieb Peter Jeremy:
>
>> Actually, it's not possible to accurately determine the holes in a
>> file by reading it - you can't differentiate between a hole and a
>> allocated block of zeroes. What you need is a (new) syscall that
>> invokes a new VOP_... and returns a bitmap of allocated blocks. This
>> would be non-trival unfortunately.
>
> This one point that has been made a number of times in the past, and one I
> don't understand:
>
> There are no sparse files as far as the userland is concerned; it's an
> optimization that remains invisible, apart from space and/or performance
> savings.
>
> For the extraction process, it should be sufficient to seek over any extende
d
> range of zeros. When packaging files that might have holes in them, it'll
> certainly be nice if there was a way to skip reading all those zeros in, but
> that's just an optimization.
>
> The way you describe it (and others have before), it sounds like the holes
> were an attribute of the file that should be preserved by tar (or any other
> archiver); I believe it's not. Preserving them in the way your post can be
> read is problematic: what if the block/allocation/cluster/fragment size of
> the extraction target differs from the source? How far would you need to
> acertain compatible allocation semantics between both filesystems?
>
> Since this has come up multiple times in the past, I feel I'm missing some
> important detail, and I'd appreciate if someone would enlighten me.
You're correct, in that filesystem semantics don't require an archiver
to recreate holes. There are storage efficiency gains to be made in
identifying holes, that's true - particularly in the case of absolutely
whopping but extremely sparse files. In those cases, a simple
userland-view-of-the-filesystem-semantics approach to ideentifying areas
that _might_ be holes (just for archive efficiency) can still be
expensive and might involve the scanning of multiple gigabytes of
"virtual" zeroes.
Solaris offers an fcntl to identify holes (IIRC) for just this purpose.
If the underlying filesystem can't be made to support it, there's an
efficiency loss but otherwise it's no great shakes.
--
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
Prolog in JavaScript: http://ioctl.org/logic/prolog-latest
------------------------------
Message: 10
Date: Wed, 21 Jul 2004 22:14:08 +0800
From: Xin LI <delphij@frontfree.net>
Subject: Re: About ISC-cron
To: Terry Lambert <tlambert2@mindspring.com>
Cc: current@FreeBSD.org
Message-ID: <20040721141408.GB1965@frontfree.net>
Content-Type: text/plain; charset="us-ascii"
Hello, Terry,
On Mon, Jul 19, 2004 at 05:02:28AM -0700, Terry Lambert wrote:
> Xin LI <delphij@frontfree.net> wrote:
> > I have Google'd the mailing list and found no discussion explaining why
> > we have not upgraded our cron and friends. Is there any discussion I
> > have missed? In other words, should I make these work a port, or a diff
> > against src/, when I have finished the whole thing?
>
> Be careful that you do not bring back a historical Berkley DB
> problem that used to bite people using cron.
Is this in the ncvs tree, or was corrected even earlier? If the former
I think I will be able to take good care for that. Also, a regression
test case which can reproduce the bug would be helpful, too :-)
Thanks for taking the issue into my attention!
Cheers,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040721/
4baf8207/attachment-0001.bin
------------------------------
Message: 11
Date: Wed, 21 Jul 2004 11:50:34 -0300
From: Jean Milanez Melo <jmelo-lists@freebsdbrasil.com.br>
Subject: Re: FreeBSD embedded: TinyBSD
To: Patrick Gardella <patrick@intothewind.cx>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <1090421434.593.3.camel@offset.freebsdbrasil.com.br>
Content-Type: text/plain
On Wed, 2004-07-21 at 08:58, Patrick Gardella wrote:
> Is there a web page for TinyBSD?
>
> patrick
Not yet, but we're going to make one if people like the project and it
gets well accepted by the community. We're definatelly putting up a
lot
of documentation on that page, though. We haven't done so yet because
currently it's way too simple, as you can run it knowing only the
information regarding the target device.
For example, assuming a 32MB flash memory, one could use the following
parameters to create an embedded system:
./tinybsd.sh 62592 4 32
Or optionally the name of the output image you want:
./tinybsd.sh 62592 4 32 myimage.bin
- Jean Milanez Melo
>
> On Jul 20, 2004, at 11:48 AM, Jean Milanez Melo wrote:
>
> > Hello current,
> >
> > Please allow me to introduce myself, I'm one of the coordinators of
> > the Brazilian FreeBSD Users group, coordinator of the official
> > FreeBSD documentation's translation group and have been working with
> > embedded FreeBSD systems since year 2000.
> >
> > I've been studying NanoBSD ever since Poul-Henning posted about it
> > on one of
> > the mailling lists, and I have been following this project closely.
> > It
> > really is a great project.
> >
> > However, I think it sometimes creates unnecessary partitions, takes
> > too long to build the system due to make world and it copies lots of
> > unneeded binaries, taking a lot of precious space.
> >
> > So me and Patrick Tracanelli (another active member of the Brazilian
> > FreeBSD community) decided to write a new set of scripts to build
> > embedded systems. We've named it TinyBSD, and its goal is to be
> > faster
> > at building-time, occupy less space on the target device and to ease
> > customization like PicoBSD does.
> >
> > Untar/gzip the tinybsd.tgz file under /usr/src/release.
> >
> > # ls
> > TINYBSD TODO tinybsd.basefiles tinybsd.sh
> >
> > We first take the file TINYBSD, which like in PicoBSD we can use to
> > define or remove all kernel options to the new system.
> >
> > Then we have tinybsd.basefiles, where we define all binaries
> > necessary
> > to get the system running and anyone can edit it as they will.
> >
> > Finally we have the script itself, tinybsd.sh. It's a simple script,
> > yet functional. We based it on NanoBSD's and its idea is to create a
> > temporary work directory where the new system's directory tree will
> > be
> > created. Then it'll copy all files listed on tinybsd.basefiles to
> > this
> > tree. This copying process is essential to the speed of the building
> > process, as we eliminate the recompiling phase. The reason for this
> > is
> > FreeBSD 5.1' dynamically-linked base system, which take much less
> > space than the old statically-linked ones. This way we can also do
> > the
> > copying without affecting the production system in any way.
> >
> > After all this, we compile the kernel using the TINYBSD file and then
> > we install the necessary libs using the dependencies' output from the
> > binaries. We populate the /etc directory on the temp work directory
> > and put in a few important default settings in /etc/rc.conf, like:
> >
> > hostname="tinybsd.freebsd.org"
> > sendmail_enable="NONE"
> > sshd_enable="YES"
> > usbd_enable="NO"
> > inetd_enable="NO"
> > portmap_enable="NO"
> > update_motd="NO"
> > varsize="8192"
> > diskless_mount="/etc/rc.d/diskless"
> >
> > Lastly, we create the empty image according to the specifications for
> > the device passed in as a parameter and copy the entire temp
> > directory
> > to the new image. After that, the user can use dd to write the final
> > image to the target device.
> >
> > Booting the system works as embedded systems do, mounting /var and
> > /tmp as MFS filesystems.
> >
> > The most interesting point is the space used by default, only 19MB.
> >
> > As you can see, it's pretty simple. But since PicoBSD is practically
> > unusable with the 5.x series, TinyBSD could be an interesting
> > alternative along with NanoBSD to be put on the base system in future
> > versions.
> >
> > Patrick and I have been thinking of enhancing the script and adding
> > end-user helping tools such dialog-based menus and the likes, for
> > more
> > details see our TODO file. In case the FreeBSD project has any
> > interest
> > in our project, we can perfectly maintain TinyBSD as an embedded
> > option
> > for FreeBSD users.
> >
> > We would like that the interested parties make tests and then
> > report bug, sends sugestions to improve the TinyBSD.
> >
> > Thank you for your attention
> > Jean Milanez Melo
> > <tinybsd.tgz>_______________________________________________
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to
> > "freebsd-current-unsubscribe@freebsd.org"
>
>
------------------------------
Message: 12
Date: Wed, 21 Jul 2004 10:41:22 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: Excellent job on the firewire support!
To: Doug Rabson <dfr@nlsystems.com>
Cc: simokawa@freebsd.org
Message-ID: <16638.32914.509773.486468@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii
Doug Rabson writes:
> Actually thats the only downside of dcons. It doesn't cut in until the
> firewire controller attaches. It relies on the fact that the fwohci
> driver allows access to physical memory from any node on the bus
> (implemeted in hardware so you can examine the memory of a hung
> machine). The dconschat program uses this feature to access the dcons
> ring buffers in the target machine.
Does remote access to physical memory require dcons to be loaded
on the target?
If no, assuming I had a Windows or Linux box on the firewire bus, would it be
possible to access physical memory from a different OS?
Thanks,
Drew
------------------------------
Message: 13
Date: Wed, 21 Jul 2004 07:53:53 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: FAILURE - ATAPI_RESET no interrupt in newer current
To: matti k <matti@optusnet.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <20040721145353.86C7E5D09@ptavv.es.net>
> Date: Wed, 21 Jul 2004 18:20:15 +1000
> From: matti k <matti@optusnet.com.au>
> Sender: owner-freebsd-current@freebsd.org
>
> On Tue, 20 Jul 2004 18:22:29 -0500 (CDT)
> "Conrad J. Sabatier" <conrads@cox.net> wrote:
> >
> > The drive works normally, it seems, at least for a while. Last
> > night, I tried playing a DVD in mplayer, and it worked fine until
> > the whole machine suddenly hung. Hard to say whether or not this is
> > an ata/atapi issue, or maybe due to the other, well-known preemption
> > problem that's being discussed here lately.
> >
>
> I get this "playing a DVD in mplayer" hang on a machine running
> -current from Sat Jun 19 17:36:01 EST 2004, which I believe pre-dates
> the preemption stuff.
This problem definitely pre-dates the preemption issues. I have been
seeing it since mid-June.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net Phone: +1 510 486-8634
------------------------------
Message: 14
Date: Wed, 21 Jul 2004 15:59:01 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: Excellent job on the firewire support!
To: Andrew Gallatin <gallatin@cs.duke.edu>
Cc: simokawa@freebsd.org
Message-ID: <1090421941.7114.26.camel@builder02.qubesoft.com>
Content-Type: text/plain
On Wed, 2004-07-21 at 15:41, Andrew Gallatin wrote:
> Doug Rabson writes:
> > Actually thats the only downside of dcons. It doesn't cut in until the
> > firewire controller attaches. It relies on the fact that the fwohci
> > driver allows access to physical memory from any node on the bus
> > (implemeted in hardware so you can examine the memory of a hung
> > machine). The dconschat program uses this feature to access the dcons
> > ring buffers in the target machine.
>
> Does remote access to physical memory require dcons to be loaded
> on the target?
No. The remote access to physical memory is a hardware-implemented
feature of the firewire ohci hardware. Its enabled in fwohci_attach().
In the long term, I would like to restrict this a bit but right now all
you have to have is fwohci loaded on the target machine.
>
> If no, assuming I had a Windows or Linux box on the firewire bus, would it b
e
> possible to access physical memory from a different OS?
Windows XP has some kind of firewire debug driver that you might have to
load (I haven't read the docs on that). I don't think the linux driver
enables physical access by default but it would be easy to hack it in
(just write all ones to the right fwohci register).
------------------------------
Message: 15
Date: Wed, 21 Jul 2004 17:02:58 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: fetch hangs, part 2
To: Darren Pilgrim <dmp@bitfreak.org>
Cc: 'Matt White' <matt+list.sw.freebsd.current@publicly.neglect.us>
Message-ID: <20040721150258.GB54664@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii
Hi Darren,
Darren Pilgrim wrote on Wed, Jul 21, 2004 at 03:54:34AM -0700:
[..]
> > Could you try disabling TCP SACK
>
> Set net.inet.tcp.delayed_ack=0?
No, the correct one is:
net.inet.tcp.sack.enable=0
However, a bug was fixed in the SACK code just recently.
I think the commit went in yesterday, or the day before.
However, it is possible that there are more issues around...
HTH,
Daniel
--
IRCnet: Mr-Spock
- In dieser Mail ist ein Geist, der Dich in den Hintern beisst -
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
------------------------------
Message: 16
Date: Wed, 21 Jul 2004 11:04:17 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Re: Excellent job on the firewire support!
To: Doug Rabson <dfr@nlsystems.com>
Cc: simokawa@freebsd.org
Message-ID: <16638.34289.507068.283775@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii
Doug Rabson writes:
> On Wed, 2004-07-21 at 15:41, Andrew Gallatin wrote:
> > Doug Rabson writes:
> > > Actually thats the only downside of dcons. It doesn't cut in until the
> > > firewire controller attaches. It relies on the fact that the fwohci
> > > driver allows access to physical memory from any node on the bus
> > > (implemeted in hardware so you can examine the memory of a hung
> > > machine). The dconschat program uses this feature to access the dcons
> > > ring buffers in the target machine.
> >
> > Does remote access to physical memory require dcons to be loaded
> > on the target?
>
> No. The remote access to physical memory is a hardware-implemented
> feature of the firewire ohci hardware. Its enabled in fwohci_attach().
> In the long term, I would like to restrict this a bit but right now all
> you have to have is fwohci loaded on the target machine.
Yes, it seems like turning it off by default would be a good idea.
Its very handy for debugging, but the security implications are rather
alarming..
Thanks for the info!
Drew
------------------------------
Message: 17
Date: Wed, 21 Jul 2004 11:10:01 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes)
To: Maxim Maximov <mcsi@mcsi.pp.ru>
Cc: Jake Hamby <jhamby@anobject.com>
Message-ID: <20040721151001.GH1009@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 21, 2004 at 03:18:48PM +0400, Maxim Maximov wrote:
> Brian Fundakowski Feldman wrote:
>
> >On Wed, Jul 21, 2004 at 12:04:22AM -0700, Julian Elischer wrote:
> >
> >>Jake Hamby wrote:
> >>
> >>>3) Random freezes
> >>
> >>>After an average of 30-40 minutes of heavy usage, I get random system
> >>>freezes. I am typically running XFree86 and downloading something
> >>>or reading web pages at the time it happens. More disturbingly, I am
> >>>occasionally seeing files get renamed, for example
> >>>/usr/src/UPDATING.64BIT became /usr/src/UPDATING.64BTT. This happens
> >>>with or without WITNESS, with INVARIANTS enabled, with or without
> >>>ACPI, and with or without SMP. I am using SCHED_ULE and no
> >>>PREEMPTION.
> >>
> >>you are not alone.. I think you just chose a bad moment to
> >>jump into -current
> >>:-/
> >
> >
> >Who else is getting random memory corruption? I've only ever seen it
> >in my life with bad RAM/bad cooling, but this could be bad anything,
> >including something spamming random addresses with DMA. The characters
> >'I' and 'T' are far enough apart such that I wouldn't expect a simple
> >memory error which usually seems to appear as a single bit flip.
>
> What are you guys all smoking? 64BTT stands for "64 bit time_t"
> http://www.freebsd.org/cgi/cvsweb.cgi/src/UPDATING.64BTT
Haha; never believe everything you read I suppose.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 18
Date: Wed, 21 Jul 2004 23:14:01 +0800
From: Xin LI <delphij@frontfree.net>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
To: Bruce Evans <bde@zeta.org.au>
Cc: current@freebsd.org
Message-ID: <20040721151401.GA2458@frontfree.net>
Content-Type: text/plain; charset="us-ascii"
Hi, Bruce
On Wed, Jul 21, 2004 at 11:37:40PM +1000, Bruce Evans wrote:
> On Wed, 21 Jul 2004, Xin LI wrote:
>
> > Hi, Poul-Henning,
> >
> > It seems that rev. 1.23 of sys/sys/time.h has constrained timespec* macros
> > to be _KERNEL (KERNEL in the old days) only. Is this intended? (NetBSD and
>
> Yes, this is intended. The timeval and timespec interfaces are optimized
> for handling times in code that can't use 64-bit integers or floating
> point (mainly in 20 year old kernels). New interfaces to manipulate them
> should not be added 20 years after the interfaces should have been
> deprecated.
>
> > OpenBSD don't expect _KERNEL for these macros, e.g. timespeccmp, and I
> > personally think that these macros will be better for more generic use,
>
> NetBSD and OpenBSD originally only had timeval*(), and FreeBSD unfortunately
> had to add them to be compatible. timespec*() seem to be even less needed
> in userland than timeval*(), since no ports are broken by not having them.
>
> > as timespec structure is not _KERNEL protected :-)
>
> The timespec struct is POSIX standard. POSIX has the correct number of
> functions for operating on timespec structs (none).
Thanks for the information, Bruce!
So this means I should use bintime instead of timespec if it is found in
code?
For the exact problem I went into: it's OpenBSD's cron which makes use of
timespec (because of fstat). I think a _KERNEL || __BSD_VISIBLE might be
helpful -- While it is possible to use bintime to represent what can be
done with a timespeccmp macro.
Cheers,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040721/
1965ac07/attachment-0001.bin
------------------------------
Message: 19
Date: Wed, 21 Jul 2004 17:14:27 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: NEW TAR
To: Jan Grant <Jan.Grant@bristol.ac.uk>
Cc: Peter Jeremy <PeterJeremy@optushome.com.au>
Message-ID: <20040721151427.GC54664@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii
Hi,
Jan Grant wrote on Wed, Jul 21, 2004 at 02:44:42PM +0100:
[..]
> You're correct, in that filesystem semantics don't require an archiver
> to recreate holes. There are storage efficiency gains to be made in
> identifying holes, that's true - particularly in the case of absolutely
> whopping but extremely sparse files. In those cases, a simple
> userland-view-of-the-filesystem-semantics approach to ideentifying areas
> that _might_ be holes (just for archive efficiency) can still be
> expensive and might involve the scanning of multiple gigabytes of
> "virtual" zeroes.
>
> Solaris offers an fcntl to identify holes (IIRC) for just this purpose.
> If the underlying filesystem can't be made to support it, there's an
> efficiency loss but otherwise it's no great shakes.
I don't get it.
I assume, that for any consumer it is totally transparent if
possibly existing chunks of 0-bytes are actually blocks full of
zeroes or just non-allocated blocks, correct?
Second, it is true, that there is a gain in terms of occupied disk
space, if chunks of zeroes are not allocated at all, correct?
So, from my point of view it is totally irrelevant, if a sparse file
is archived and then extracted, if the areas, which contain zeroes
are exactly in the same manner consisting of unallocated blocks
or not.
So, all I guess an archiver must do is:
- read the file
- scan the file for consecutive blocks of zeroes
- archive these blocks in an efficient way
- on extraction, create a sparse file with the previously
identified empty blocks, regardless if these blocks
have been 'sparse' blocks in the original file or not.
I do not see, why it is important if the original file was sparse
at all or maybe in different places.
Cheers,
Daniel
--
IRCnet: Mr-Spock - My name is Pentium of Borg, division is futile, you
will be approximated. -
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
------------------------------
Message: 20
Date: Wed, 21 Jul 2004 17:30:45 +0200 (CEST)
From: Harti Brandt <harti@freebsd.org>
Subject: Re: NEW TAR
To: Daniel Lang <dl@leo.org>
Cc: Jan Grant <Jan.Grant@bristol.ac.uk>
Message-ID: <20040721172047.C99248@beagle.kn.op.dlr.de>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 21 Jul 2004, Daniel Lang wrote:
DL>Hi,
DL>
DL>Jan Grant wrote on Wed, Jul 21, 2004 at 02:44:42PM +0100:
DL>[..]
DL>> You're correct, in that filesystem semantics don't require an archiver
DL>> to recreate holes. There are storage efficiency gains to be made in
DL>> identifying holes, that's true - particularly in the case of absolutely
DL>> whopping but extremely sparse files. In those cases, a simple
DL>> userland-view-of-the-filesystem-semantics approach to ideentifying areas
DL>> that _might_ be holes (just for archive efficiency) can still be
DL>> expensive and might involve the scanning of multiple gigabytes of
DL>> "virtual" zeroes.
DL>>
DL>> Solaris offers an fcntl to identify holes (IIRC) for just this purpose.
DL>> If the underlying filesystem can't be made to support it, there's an
DL>> efficiency loss but otherwise it's no great shakes.
DL>
DL>I don't get it.
DL>
DL>I assume, that for any consumer it is totally transparent if
DL>possibly existing chunks of 0-bytes are actually blocks full of
DL>zeroes or just non-allocated blocks, correct?
DL>
DL>Second, it is true, that there is a gain in terms of occupied disk
DL>space, if chunks of zeroes are not allocated at all, correct?
DL>
DL>So, from my point of view it is totally irrelevant, if a sparse file
DL>is archived and then extracted, if the areas, which contain zeroes
DL>are exactly in the same manner consisting of unallocated blocks
DL>or not.
DL>
DL>So, all I guess an archiver must do is:
DL>
DL> - read the file
DL> - scan the file for consecutive blocks of zeroes
DL> - archive these blocks in an efficient way
DL> - on extraction, create a sparse file with the previously
DL> identified empty blocks, regardless if these blocks
DL> have been 'sparse' blocks in the original file or not.
DL>
DL>I do not see, why it is important if the original file was sparse
DL>at all or maybe in different places.
It just may be a good deal faster just to take existing hole information
(if it exists) than to scan the file.
Also there is a difference between holes and actual zeroes: it's like
overcommitting memory. Yoy may have a 1TB file consisting of a large
hole on a 10GB disk. Just as you write something to it you will get an
error at some time even when writing into the middle of the file, just
because the FS needs to allocate blocks. I could imagine an application
knowing its access pattern to a large sparse file allocating zeroed blocks
in advance while skipping blocks that it knows it'll not write, just to
make sure the blocks are there when it will write later on. But that's a
rather hypothetical application.
harti
------------------------------
Message: 21
Date: Wed, 21 Jul 2004 15:32:58 +0000
From: <pablo.morales@abitab.com.uy>
Subject: Re: FreeBSD embedded: TinyBSD
To: "jmelo-lists@freebsdbrasil.com.br"
<jmelo-lists@freebsdbrasil.com.br>, "Patrick Gardella"
<patrick@intothewind.cx>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040721153259.7E9E623FBD@mail.abitab.com.uy>
Content-Type: text/plain; charset=ISO-8859-1
HI there boys.
I'm writing to Uruguay
I'm interested in TinyBSD, I'd like to know if the term ebeded refers
only to the *size* or if you have been tweking the kernel code.
I'm working with Some GEODE stuff, using linux, I'm using the terminals
just like that, remote PXE booting with nfs-root.
I'd like to have access to your project to give it a try with this
enviroment.
Thanx.
On 21/7/2004, "Jean Milanez Melo" <jmelo-lists@freebsdbrasil.com.br>
wrote:
>On Wed, 2004-07-21 at 08:58, Patrick Gardella wrote:
>> Is there a web page for TinyBSD?
>>
>> patrick
>
>
>Not yet, but we're going to make one if people like the project and it
> gets well accepted by the community. We're definatelly putting up a
>lot
> of documentation on that page, though. We haven't done so yet because
> currently it's way too simple, as you can run it knowing only the
> information regarding the target device.
>
> For example, assuming a 32MB flash memory, one could use the following
> parameters to create an embedded system:
>
> ./tinybsd.sh 62592 4 32
>
> Or optionally the name of the output image you want:
>
> ./tinybsd.sh 62592 4 32 myimage.bin
>
>- Jean Milanez Melo
>
>>
>> On Jul 20, 2004, at 11:48 AM, Jean Milanez Melo wrote:
>>
>> > Hello current,
>> >
>> > Please allow me to introduce myself, I'm one of the coordinators of
>> > the Brazilian FreeBSD Users group, coordinator of the official
>> > FreeBSD documentation's translation group and have been working with
>> > embedded FreeBSD systems since year 2000.
>> >
>> > I've been studying NanoBSD ever since Poul-Henning posted about it
>> > on one of
>> > the mailling lists, and I have been following this project closely.
>> > It
>> > really is a great project.
>> >
>> > However, I think it sometimes creates unnecessary partitions, takes
>> > too long to build the system due to make world and it copies lots of
>> > unneeded binaries, taking a lot of precious space.
>> >
>> > So me and Patrick Tracanelli (another active member of the Brazilian
>> > FreeBSD community) decided to write a new set of scripts to build
>> > embedded systems. We've named it TinyBSD, and its goal is to be
>> > faster
>> > at building-time, occupy less space on the target device and to ease
>> > customization like PicoBSD does.
>> >
>> > Untar/gzip the tinybsd.tgz file under /usr/src/release.
>> >
>> > # ls
>> > TINYBSD TODO tinybsd.basefiles tinybsd.sh
>> >
>> > We first take the file TINYBSD, which like in PicoBSD we can use to
>> > define or remove all kernel options to the new system.
>> >
>> > Then we have tinybsd.basefiles, where we define all binaries
>> > necessary
>> > to get the system running and anyone can edit it as they will.
>> >
>> > Finally we have the script itself, tinybsd.sh. It's a simple script,
>> > yet functional. We based it on NanoBSD's and its idea is to create a
>> > temporary work directory where the new system's directory tree will
>> > be
>> > created. Then it'll copy all files listed on tinybsd.basefiles to
>> > this
>> > tree. This copying process is essential to the speed of the building
>> > process, as we eliminate the recompiling phase. The reason for this
>> > is
>> > FreeBSD 5.1' dynamically-linked base system, which take much less
>> > space than the old statically-linked ones. This way we can also do
>> > the
>> > copying without affecting the production system in any way.
>> >
>> > After all this, we compile the kernel using the TINYBSD file and then
>> > we install the necessary libs using the dependencies' output from the
>> > binaries. We populate the /etc directory on the temp work directory
>> > and put in a few important default settings in /etc/rc.conf, like:
>> >
>> > hostname="tinybsd.freebsd.org"
>> > sendmail_enable="NONE"
>> > sshd_enable="YES"
>> > usbd_enable="NO"
>> > inetd_enable="NO"
>> > portmap_enable="NO"
>> > update_motd="NO"
>> > varsize="8192"
>> > diskless_mount="/etc/rc.d/diskless"
>> >
>> > Lastly, we create the empty image according to the specifications for
>> > the device passed in as a parameter and copy the entire temp
>> > directory
>> > to the new image. After that, the user can use dd to write the final
>> > image to the target device.
>> >
>> > Booting the system works as embedded systems do, mounting /var and
>> > /tmp as MFS filesystems.
>> >
>> > The most interesting point is the space used by default, only 19MB.
>> >
>> > As you can see, it's pretty simple. But since PicoBSD is practically
>> > unusable with the 5.x series, TinyBSD could be an interesting
>> > alternative along with NanoBSD to be put on the base system in future
>> > versions.
>> >
>> > Patrick and I have been thinking of enhancing the script and adding
>> > end-user helping tools such dialog-based menus and the likes, for
>> > more
>> > details see our TODO file. In case the FreeBSD project has any
>> > interest
>> > in our project, we can perfectly maintain TinyBSD as an embedded
>> > option
>> > for FreeBSD users.
>> >
>> > We would like that the interested parties make tests and then
>> > report bug, sends sugestions to improve the TinyBSD.
>> >
>> > Thank you for your attention
>> > Jean Milanez Melo
>> > <tinybsd.tgz>_______________________________________________
>> > freebsd-current@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> > To unsubscribe, send any mail to
>> > "freebsd-current-unsubscribe@freebsd.org"
>>
>>
>
>_______________________________________________
>freebsd-current@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
------------------------------
Message: 22
Date: Wed, 21 Jul 2004 17:34:34 +0200
From: Andre Oppermann <andre@freebsd.org>
Subject: Re: fetch hangs, part 2
To: Darren Pilgrim <dmp@bitfreak.org>
Cc: 'Matt White' <matt+list.sw.freebsd.current@publicly.neglect.us>
Message-ID: <40FE8D0A.2030407@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Darren Pilgrim wrote:
>>From: Robert Watson [mailto:rwatson@freebsd.org]
>>
>>On Tue, 20 Jul 2004, Darren Pilgrim wrote:
>>
>>>I've been having the same (or a similar problem). Fetching the distfile
>>>for a port will hang. I poked some more at this and found that all the
>>>sites fetch is hanging on successfully negotiate the TCP connection then
>>>go dead without closing the connection. My workaround has been to edit
>>>the Makefile and remove the offending site from MASTER_SITES or manually
>>>fetch from ftp.freebsd.org.
>>
>>Could you try disabling TCP SACK
>
> Set net.inet.tcp.delayed_ack=0?
>
>>and see if things "get better"? It's one
>>of the things that has changed in the TCP code recently. This could well
>>be a user space fetch issue, but it would be worth trying it to see, if
>>only to rule it out.
>
> It didn't change. The connections still hung.
Darren sent me a list with sites where he experiences the problem and I
have tested them with FreeBSD 5-CURRENT (yesterday's), 4.10-STABLE and
Windows 2kSP4. None worked. For FreeBSD fetch waited for the connection
timeout and went to the second site to fetch the tarball (successfully).
Maybe he was just not patient enough to wait for fetch to move on.
--
Andre
------------------------------
Message: 23
Date: Wed, 21 Jul 2004 11:43:25 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on ia64/ia64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<ia64@freebsd.org>
Message-ID: <20040721154325.7D4C47303F@freebsd-current.sentex.ca>
TB --- 2004-07-21 14:35:43 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-21 14:35:43 - starting CURRENT tinderbox run for ia64/ia64
TB --- 2004-07-21 14:35:43 - cleaning the sandbox
TB --- 2004-07-21 14:37:01 - checking out the source tree
TB --- 2004-07-21 14:37:01 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64
TB --- 2004-07-21 14:37:01 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A
src
TB --- 2004-07-21 14:44:55 - WARNING: /home/tinderbox/sandbox/ia64.diff does n
ot exist
TB --- 2004-07-21 14:44:55 - building world (CFLAGS=-O -pipe)
TB --- 2004-07-21 14:44:55 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-07-21 14:44:55 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
TB --- 2004-07-21 15:40:11 - building generic kernel (COPTFLAGS=-O -pipe)
TB --- 2004-07-21 15:40:11 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-07-21 15:40:11 - /usr/bin/make buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Wed Jul 21 15:40:11 UTC 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:372: error: `WARN_GIANTOK' und
eclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:372: error: `WARN_SLEEPOK' und
eclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h: In function `m_getcl':
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:385: error: `WARN_GIANTOK' und
eclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:385: error: `WARN_SLEEPOK' und
eclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h: In function `m_clget':
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:413: error: `WARN_GIANTOK' und
eclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/sys/sys/mbuf.h:413: error: `WARN_SLEEPOK' und
eclared (first use in this function)
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/
sys/GENERIC.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/ia64/ia64/src.
TB --- 2004-07-21 15:43:25 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-07-21 15:43:25 - ERROR: failed to build generic kernel
TB --- 2004-07-21 15:43:25 - tinderbox aborted
------------------------------
Message: 24
Date: Wed, 21 Jul 2004 09:45:05 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: vmnet.ko missing - but it's there! - vmware and crashes
To: Ben Paley <ben@spooty.net>
Cc: "freebsd -current@" <freebsd-current@freebsd.org>
Message-ID: <40FE8F81.7040409@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Ben Paley wrote:
> On Tuesday 20 July 2004 23:59, Scott Long wrote:
>
>
>>Recompile the vmnet.ko binary from source and see if that helps.
>
>
> I remade the whole thing, in the end, and now at least I'm not getting crash
es
> (at least, I think I remade the module... I did make and make install and so
> on in /usr/ports/emulators/vmware3/ , but I couldn't see how to compile
> vmnet.ko on its own).
>
> On boot I still get this:
>
> Additional ABI support: linux.
> Starting cron.
> Local package initialization:link_elf: symbol linux_ioctl_register_handler
> undefined
> kldload: can't load /usr/local/lib/vmware/modules/vmnet.ko: No such file or
> directory
Is your linux.ko module out of date? You have a mis-match somewhere here.
Scott
------------------------------
Message: 25
Date: Wed, 21 Jul 2004 12:01:40 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: vmnet.ko missing - but it's there! - vmware and crashes
To: Scott Long <scottl@freebsd.org>
Cc: "freebsd -current@" <freebsd-current@freebsd.org>
Message-ID:
<Pine.NEB.3.96L.1040721115940.56342A-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 21 Jul 2004, Scott Long wrote:
> > Additional ABI support: linux.
> > Starting cron.
> > Local package initialization:link_elf: symbol linux_ioctl_register_handler
> > undefined
> > kldload: can't load /usr/local/lib/vmware/modules/vmnet.ko: No such file o
r
> > directory
>
> Is your linux.ko module out of date? You have a mis-match somewhere
> here.
Or, alternatively, the symbols exported by the Linux emulation module have
changed, and the VMware port hasn't caught up (or the local copy needs
updating). Something is definitely out of sync, needless to say, but it
could be that the VMware module needs updating in the pseudo-vendor.
I've been wondering if we shouldn't bring the VMware modules into the base
source tree for some time -- the license is probably an issue, but VMware
is a valuable tool for development, and I'm amazed at how frequently and
accurately I shoot my feet due to stale versions of the module when I am
using it (such as when on travel and I need a debug target). This isn't
just a property of failing to rebuild modules, but that the Linux
emulation code changes and the VMware modules need to be modified to take
that into account...
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 26
Date: Wed, 21 Jul 2004 10:04:34 -0600
From: Greg Skafte <skafte+freebsd-current@trollkarl.net>
Subject: panic: mb_init_pack(): Can't deal with failure yet.
To: freebsd-current@freebsd.org
Message-ID: <20040721160434.GA4506@trollkarl.skafte.org>
Content-Type: text/plain; charset=us-ascii
panic: mb_init_pack(): Can't deal with failure yet.
panic messages:
---
panic: mb_init_pack(): Can't deal with failure yet.
cpuid = 0;
boot() called on cpu#0
syncing disks, buffers remaining... kernel trap 12 with interrupts disabled
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x24
fault code = supervisor read, page not present
instruction pointer = 0x8:0xc0659e39
stack pointer = 0x10:0xe18b6c10
frame pointer = 0x10:0xe18b6c30
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = resume, IOPL = 0
current process = 62 (swi8: tty:sio clock)
trap number = 12
panic: page fault
cpuid = 0;
boot() called on cpu#0
Uptime: 4d23h53m11s
backtrace
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:236
236 dumping++;
(kgdb) bt
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1 0xc063621b in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:370
#2 0xc06369e8 in panic (fmt=0xc0830807 "%s") at /usr/src/sys/kern/kern_shutdo
wn.c:548
#3 0xc07e8cc7 in trap_fatal (frame=0xe18b6bd0, eva=0) at /usr/src/sys/i386/i3
86/trap.c:815
#4 0xc07e87aa in trap (frame=
{tf_fs = -983236584, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi = -98409
0208, tf_ebp = -510956496, tf_isp = -510956548, tf_ebx = -984470080, tf_edx =
-983145932, tf_ecx = -984090208, tf_eax = 36, tf_trapno = 12, tf_err = 0, tf_e
ip = -1067082183, tf_cs = 8, tf_eflags = 65683, tf_esp = 1, tf_ss = 2}) at /us
r/src/sys/i386/i386/trap.c:250
#5 0xc0659e39 in propagate_priority (td=0xc5522dc0) at /usr/src/sys/kern/subr
_turnstile.c:212
#6 0xc065a58e in turnstile_wait (ts=0xc5d207c0, lock=0xc5666234, owner=0xc552
2dc0)
at /usr/src/sys/kern/subr_turnstile.c:505
#7 0xc062bd8e in _mtx_lock_sleep (m=0xc5666234, opts=0, file=0x0, line=0)
at /usr/src/sys/kern/kern_mutex.c:541
#8 0xc05296a6 in fxp_tick (xsc=0xc5666000) at /usr/src/sys/dev/fxp/if_fxp.c:1
807
#9 0xc0644709 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:25
5
#10 0xc061d974 in ithread_loop (arg=0xc55aa880) at /usr/src/sys/kern/kern_intr
.c:557
#11 0xc061c670 in fork_exit (callout=0xc061d752 <ithread_loop>, arg=0x0, frame
=0x0)
at /usr/src/sys/kern/kern_fork.c:816
KERNEL Supdate date=2004.06.25.01.00.00
Quad Xeon, 4Gig Ram, HTT disabled, ADAPTIVE_MUTEXES
I'm getting this about every 4 days....
--
Email: skafte@trollkarl.net ICQ: 93234105
-- --
When things can't get any worse, they simplify themselves by getting a
whole lot worse then complicated. A complete and utter disaster is the
simplest thing in the world; it's preventing one that's complex.
(Janet Morris)
------------------------------
Message: 27
Date: Wed, 21 Jul 2004 11:04:43 -0500
From: Joseph Peterson <joseph.peterson@gmail.com>
Subject: Re: FAILURE - ATAPI_RESET no interrupt in newer current
To: freebsd-current@freebsd.org
Message-ID: <38a23c3604072109046e63cdd9@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
I have the same issue, err well similar....
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <TOSHIBA DVD-ROM SD-R2412> at ata1-master PIO4
This is on a Toshiba Satelite A25-S279.
Do you have any problems with burncd? when I use it, I will sometimes
get a lockup. What do you have in your loader.conf?
On Wed, 21 Jul 2004 01:02:43 +0200, Andreas Kohn <andreas.kohn@gmx.net> wrote:
> Hi,
>
> today I updated my -CURRENT from ~July 5 to July 20 sources. After
> reboot with the new kernel, I saw this:
>
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: CDRW <TOSHIBA DVD-ROM SD-R1002> at ata1-master WDMA2
>
> With the old kernel, die FAILURE message was not there, but the acd0 was
> running in WDMA2 mode as well.
>
> This is a
> atapci0: <VIA 8235 UDMA133 controller> port
> 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
> controller.
>
> Is this message to be expected, or should I worry about anything?
>
> Regards,
> Andreas Kohn
>
>
>
------------------------------
Message: 28
Date: Wed, 21 Jul 2004 09:06:57 -0700
From: Sam Leffler <sam@errno.com>
Subject: Re: Using -current on a Fujitsu Lifebook N5010 (no Atheros
802.11, no Ethernet, + hard freezes)
To: freebsd-mobile@freebsd.org
Cc: Jake Hamby <jhamby@anobject.com>
Message-ID: <200407210906.57595.sam@errno.com>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 21 July 2004 12:04 am, Julian Elischer wrote:
> Jake Hamby wrote:
> > * Now uses four transmission queues of varying priority instead of
> > one: WME_AC_BE (highest), WME_AC_BK, WME_AC_VI, and WME_AC_VO
> > (lowest). There is code in the Linux version to support QOS and
> > insert outgoing packets into queue by priority, but I couldn't find
> > the equivalent of the priority field from Linux's sk_buff struct in
> > FreeBSD's equivalent ieee80211_frame struct. Currently all outgoing
> > packets go to WME_AC_BE, except packets of type
> > IEEE80211_FC0_TYPE_MGT, which go to WME_AC_VO.
>
> FreeBSD would store that information in what is called an mbuf tag.
> A separate small chunk of ram tagged onto teh first mbuf of the packet.
> This is relatively new and there is only just starting to be some
> use of it.. Official QOS support in the kernel does not exist yet.
> (though there are some sporadic users of priority tags here and there
> it is not general yet.)
I backported the madwifi code and handled this with a hack. The net80211
layer parses the IP TOS bits to map to WME AC's. Since there are only 4 AC's
to map to and the info is passed directly to the drivers under the net80211
layer I encoded them in the mbuf M_PROTO bits instead of using an m_tag.
I've already sent Jake a copy of my (unfinished) work in the hopes he'll see
it through to commit-ready form.
Sam
------------------------------
Message: 29
Date: Wed, 21 Jul 2004 09:27:06 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: NEW TAR
To: Daniel Lang <dl@leo.org>
Cc: current@freebsd.org
Message-ID: <20040721162706.GA12760@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 21, 2004 at 05:14:27PM +0200, Daniel Lang wrote:
> Hi,
>
> Jan Grant wrote on Wed, Jul 21, 2004 at 02:44:42PM +0100:
> [..]
> > You're correct, in that filesystem semantics don't require an archiver
> > to recreate holes. There are storage efficiency gains to be made in
> > identifying holes, that's true - particularly in the case of absolutely
> > whopping but extremely sparse files. In those cases, a simple
> > userland-view-of-the-filesystem-semantics approach to ideentifying areas
> > that _might_ be holes (just for archive efficiency) can still be
> > expensive and might involve the scanning of multiple gigabytes of
> > "virtual" zeroes.
> >
> > Solaris offers an fcntl to identify holes (IIRC) for just this purpose.
> > If the underlying filesystem can't be made to support it, there's an
> > efficiency loss but otherwise it's no great shakes.
>
> I don't get it.
>
> I assume, that for any consumer it is totally transparent if
> possibly existing chunks of 0-bytes are actually blocks full of
> zeroes or just non-allocated blocks, correct?
>
> Second, it is true, that there is a gain in terms of occupied disk
> space, if chunks of zeroes are not allocated at all, correct?
>
> So, from my point of view it is totally irrelevant, if a sparse file
> is archived and then extracted, if the areas, which contain zeroes
> are exactly in the same manner consisting of unallocated blocks
> or not.
>
> So, all I guess an archiver must do is:
>
> - read the file
> - scan the file for consecutive blocks of zeroes
> - archive these blocks in an efficient way
> - on extraction, create a sparse file with the previously
> identified empty blocks, regardless if these blocks
> have been 'sparse' blocks in the original file or not.
>
> I do not see, why it is important if the original file was sparse
> at all or maybe in different places.
Since sparse files over commit the disk, they should only be created
deliberatly. Otherwise you can easily get in trouble if you try to use
reserved space later since it won't actually be reserved. Consider the
case of a file system image created with "dd if=/dev/zero ...; newfw
..". If your archiver decides to be "smart" and restore a copy of that
file sparce and then you use up the availble blocks on your disk you're
going to be in a world of hurt. I wouldn't be suprised it that resulted
in a panic.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040721/
52b2fad9/attachment-0001.bin
------------------------------
Message: 30
Date: Wed, 21 Jul 2004 18:32:59 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Any idea why timespec* is _KERNEL stuff only?
To: Bruce Evans <bde@zeta.org.au>
Cc: current@freebsd.org
Message-ID: <84539.1090427579@critter.freebsd.dk>
In message <20040721232310.Y2587@epsplex.bde.org>, Bruce Evans writes:
>The timespec struct is POSIX standard. POSIX has the correct number of
>functions for operating on timespec structs (none).
I am not in agreement mere. As much as I hate timespec, we'll have
to live with it, and rather than have people make their own mistakes
I'd prefer to expose some functions/macros that do it right.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 69, Issue 9
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[36m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m