bug-coreutils
[Top][All Lists]
Advanced

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

Re: Default number of overwrites in shred


From: Pádraig Brady
Subject: Re: Default number of overwrites in shred
Date: Sun, 06 May 2007 23:09:01 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061116)

Philip Rowlands wrote:
> On Fri, 4 May 2007, Paul Eggert wrote:
> 
>> Anyway, 'shred' currently does the first, but not the second, as it
>> doesn't verify what it's written.  That should get fixed, no?
> 
> Is there a way to ensure reading directly from disk? On Linux I see only
> a whole-system, root-level way to drop cached files [1].
> 
> 
> Cheers,
> Phil
> 
> [1] http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

We discussed posix_fadvise(POSIX_FADV_DONTNEED) a while back actually:
http://lists.gnu.org/archive/html/bug-coreutils/2007-03/msg00039.html
Currently _on linux_ that will invalidate the cache for a file,
rather than a process. I.E. it currently does what you want.
I.E. if many processes have referenced pages of a file, then they are
still dropped when any process make the above call.
Note I don't think the spec should/does intend this.

A better option I think is to use O_DIRECT, but again
portability is going to be the issue here.

Pádraig.




reply via email to

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