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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kyle Sallee <kyle.sallee <at> gmail.com>
Subject: bug#15578: closed (Re: bug#15578: Parameter -d or --direct to
 open files with flag O_DIRECT?)
Date: Thu, 10 Oct 2013 03:12:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#15578: Parameter -d or --direct to open files with flag O_DIRECT?

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 15578 <at> debbugs.gnu.org.

-- 
15578: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15578
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Kyle Sallee <kyle.sallee <at> gmail.com>
Cc: 15578-done <at> debbugs.gnu.org
Subject: Re: bug#15578: Parameter -d or --direct to open files with flag
 O_DIRECT?
Date: Wed, 09 Oct 2013 21:11:48 -0600
[Message part 3 (text/plain, inline)]
tag 15578 notabug
thanks

On 10/09/2013 05:18 PM, Kyle Sallee wrote:
> Please consider the attached gzipped patch file.

Thanks for the patch.

Unless the patch is huger than 100k, it's best to post it inline rather
than forcing readers to go through extra hoops to unpack it.

> It provides additional parameters for cat.
> The additional parameter allows cat to open files and read content
> without storing the content in the kernel's block cache.

However, adding an option to 'cat' is probably not the best option.  We
already have 'dd' that can request O_DIRECT on operating systems where
that is defined, so you are probably better off converting your scripts
to use dd than to try and retrofit cat and wait for the patches to
percolate into your distro.  Look for 'dd iflag=direct'.

I'm closing this bug as we probably aren't going to change cat, but do
feel free to add additional comments on this thread as appropriate.  Who
knows - maybe it's worth reopening and repurposing this bug report into
a documentation patch.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Kyle Sallee <kyle.sallee <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Parameter -d or --direct to open files with flag O_DIRECT?
Date: Wed, 9 Oct 2013 16:18:05 -0700
[Message part 6 (text/plain, inline)]
Please consider the attached gzipped patch file.
It provides additional parameters for cat.
The additional parameter allows cat to open files and read content
without storing the content in the kernel's block cache.
[Message part 7 (text/html, inline)]
[coreutils-8.21-O_DIRECT-cat.patch.gz (application/x-gzip, attachment)]

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

Previous Next


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