bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] dd: work around buffer length restrictions with oflag=direct


From: Pádraig Brady
Subject: Re: [PATCH] dd: work around buffer length restrictions with oflag=direct (O_DIRECT)
Date: Mon, 10 Aug 2009 10:06:48 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Jim Meyering wrote:
> +#ifdef POSIX_FADV_DONTNEED
> +      off_t off = lseek (STDOUT_FILENO, 0, SEEK_CUR);
> +      if (0 <= off)
> +        ignore_value (posix_fadvise (STDOUT_FILENO,
> +                                     off, 0, POSIX_FADV_DONTNEED));
> +#endif

That reminds me that it would be nice to have
[io]flag=stream to read/write files without polluting the cache etc.

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]