-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/15/2012 05:10 PM, Mike Fleetwood wrote: > If I understand correctly Linux returns stale data from the buffer > cache when reading from /dev/sda after that data has been updated > via /dev/sda12 with different contents. (In my case wiping, > zeroing and creating a different file system in the partition). > And that using ioctl(fd, BLKFLSBUF) on /dev/sda prevents this.
That was my thinking as well, and util-linux's fdisk seems to think so too, but Hans de Goede skipped this on 2.6 kernels in commit 2a6936fa. Hans, you wrote that you spoke with some kernel folks that said this was not an issue any more in 2.6 kernels. Could you shed some more light on this because it appears that it still is? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQzQ+fAAoJEJrBOlT6nu75niQH/2xac3OE3XudZQ7Uh3B7qdOB 32S89DjpfHeMxCTv+A2pNR1sUcbeKc/mPht9MPQEEkOo+uHlRU8Ts8c691aP7Poh 5OKOzuFUhWpoGfi3IrS1pvBo1IMjoXI1xC8FjJJNcrNp1sFHVy1Ui8pUV+OMQV4w 8vqyCs0aFihfgAIopJwTCt0vk3YjjTo8Z7zZeZGtc6+ZCvTfDM5G0RPxuQaH7vDd TmcaGjnQ6hzPyrhjRENK7YL5alXnowiiIocIZaFFR7iLlqXkrmilXp7FsbL8DKkA NCVhY0+HQte2R9fMP680/JMJjt1nUYh2d8lnzc0cnwTn6ndjJsyxVMNgpPrm4nE= =gj1t -----END PGP SIGNATURE-----

