-----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-----
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
