Subject: Re: optimistic dd bandwidth calculation
To: Johan Danielsson <joda@pdc.kth.se>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-userlevel
Date: 07/18/2002 18:54:42
On 18 Jul 2002, Johan Danielsson wrote:
> Does this look correct (this is in dd_close)?
>
> --- dd.c        2002/01/10 03:25:12     1.26
> +++ dd.c        2002/07/18 14:44:46
> @ -360,6 +360,8 @
>         }
>         if (out.dbcnt)
>                 dd_out(1);
> +       if(fsync(out.fd) < 0)
> +               err(1, "%s", out.name);

What's the idea behind this? Why force the machine to write out
everything, bypassing buffer cache and whatnot?


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/