bug#15578: Parameter -d or --direct to open files with flag O_DIRECT? (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Kyle Sallee |
---|---|
Subject: | bug#15578: Parameter -d or --direct to open files with flag O_DIRECT? |
Date: | Wed, 9 Oct 2013 21:49:21 -0700 |
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.
- bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Kyle Sallee, 2013/10/09
- bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Pádraig Brady, 2013/10/09
- bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Eric Blake, 2013/10/09
* bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?,Kyle Sallee <=
* bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Pádraig Brady, 2013/10/10
* bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Pádraig Brady, 2013/10/10
* bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?, Kyle Sallee, 2013/10/12
- Prev by Date:bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?
- Next by Date:bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?
- Previous by thread:bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?
- Next by thread:bug#15578: Parameter -d or --direct to open files with flag O_DIRECT?
- Index(es):