bug-coreutils
[Top][All Lists]
Advanced

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

CP proposal


From: Thorsten W. Schmidt
Subject: CP proposal
Date: Thu, 25 Aug 2005 14:48:50 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

often I copy a lot of files. The kernel stores the blocks of the files in
its cache, but i know that these files fill not get accessed any more in
the near future. So i propose a new flag for the cp command to supress
caching the files.

Here i have a snippet of a code with which i sucessfully tested bypassing
the cache.


  FILE* fp;
  ...
  int filedescriptor = fileno (fp);
  posix_fadvise ( filedescriptor, 0, 0, POSIX_FADV_DONTNEED );
  ...
  fclose (fp);

Greetings
  Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQw2+MoJWJ8zxq38yAQIn2Af7BedexD7I7k76eM35qKZ5lclEAikMLqJa
COsYibvpoZzstwhfkNTjVJjvTQ8AaRqVdWCpISPWmvUpuWT96G1z3ywWwTiUKHPx
4IxFJroYUrCwGGIHpcp/zn2VGQ29AgznCrguyQtqIZSV/1JXjBhA6SflItjpwX0/
pp0pM4uEoSstXMnQQBh+5ALotwKcz23cEnQYsvQkzVz7ZbjxBp5wIMdT2VYMCVrP
/dd4mHNrfiN70HTIsuBmAI88K233G3UAMSihEij4T3jm7HKoJJo0r65XfWXhBVp0
guZ8ZIb0GwMIUtzLLEB6C4/beYh7GTbxumkj5s3Ji4rZk6fVLQjeoQ==
=pL92
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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