Flush block cache on adding disk to device map.

* grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
	(grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
	adding.
	(read_device_map): Likewise.
	(open_device): Flush on opening.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-11 21:03:47 +02:00
parent 690434e81d
commit f1a6254cf1
2 changed files with 34 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
Flush block cache on adding disk to device map.
* grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
(grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
adding.
(read_device_map): Likewise.
(open_device): Flush on opening.
2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.