GNU bug report logs - #15578
Parameter -d or --direct to open files with flag O_DIRECT?

Previous Next

Package: coreutils;

Reported by: Kyle Sallee <kyle.sallee <at> gmail.com>

Date: Wed, 9 Oct 2013 23:21:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kyle Sallee <kyle.sallee <at> gmail.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 15578-done <at> debbugs.gnu.org
Subject: bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?
Date: Wed, 9 Oct 2013 21:49:21 -0700
[Message part 1 (text/plain, inline)]
Please forgive the inconvenience.
Attaching a gzipped patch file
ensures the integrity of patch file content.
I should have presented only the idea
rather than a patch for the implementation.

I concur dd is already suited to the task.

Please consider

| sed 's/^/if=/' | xargs -r --max-lines=1 dd iflag=direct  # in contrast
with
                   | xargs -r --max-lines=4096 cat -d --

Invoking dd 466059 times costs only a slight performance decrease
as compared with invoking cat 114 times.
However, this example probably represents rare usage for cat.

Thanks for granting the time and consideration.
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 220 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.