[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32472] Shouldn't use sync ()
From: |
КоренбергМарк |
Subject: |
[bug #32472] Shouldn't use sync () |
Date: |
Mon, 25 Apr 2011 09:31:13 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16 |
Follow-up Comment #14, bug #32472 (project grub):
I have found some errors in code and provide a patch:
grub_util_biosdisk_flush():
grub_util_biosdisk_flush() tries to open device as RDONLY and flush() after
that. This will not work. As I think, it should not try to open closed device,
and second, it should not try to flush devices opened read-only. Also it
should check return values of fsync() and ioctl()
open_device():
In case of error during open, disk structure will be corrupted (data->dev
points to free()d location. data->fd close()d, but still > 0.)
(The same issue in second place of that function)
grub_util_biosdisk_close():
simplifiction for use new grub_util_biosdisk_flush().
(file #23298)
_______________________________________________________
Additional Item Attachment:
File name: z.patch Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32472>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #32472] GRUB2 does not flush data correctly after installing, (continued)
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/09
- [bug #32472] GRUB2 does not flush data correctly after installing, Vladimir Serbinenko, 2011/04/09
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/09
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/09
- [bug #32472] GRUB2 does not flush data correctly after installing, Vladimir Serbinenko, 2011/04/10
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/10
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/10
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/10
- [bug #32472] GRUB2 does not flush data correctly after installing, КоренбергМарк, 2011/04/15
- Message not available
- Message not available
- [bug #32472] Shouldn't use sync (), КоренбергМарк, 2011/04/22
- [bug #32472] Shouldn't use sync (),
КоренбергМарк <=
- [bug #32472] Shouldn't use sync (), Vladimir Serbinenko, 2011/04/25
- [bug #32472] Shouldn't use sync (), КоренбергМарк, 2011/04/25
- [bug #32472] Shouldn't use sync (), Vladimir Serbinenko, 2011/04/25
- [bug #32472] Shouldn't use sync (), КоренбергМарк, 2011/04/25
- [bug #32472] Shouldn't use sync (), Vladimir Serbinenko, 2011/04/25