Patch #1754 has been updated.
Project:
Category: libstore
Status: Open
Summary: store_{read,write} abort program when LEN is not aligned
Follow-Ups:
Date: Wed 07/23/2003 at 14:35
By: ogi
Comment:
* Copyright years are updated.
-------------------------------------------------------
Date: Thu 07/31/2003 at 23:46
By: marcus
Comment:
The assert is there to catch bugs in libstore using programs, which usually only
access store blocks with aligned boundaries.
Do you have an application which doesn't do this, or did you see a Hurd program using
libstore in a way that triggers the assertion?
-------------------------------------------------------
Date: Fri 08/01/2003 at 10:15
By: ogi
Comment:
I hit this problem while patching e2fsprogs to work with libstore. e2fsprogs uses
some unaligned reads from block devices.
If libstore was internal library in the Hurd, I would agree with you. But native Hurd
programs (not in the Hurd distribution) can legally want to use the library, so
libstore must behave correctly on invalid arguments. For example, munmap returns
EINVAL if address is not aligned, it doesn't throw assertion failure. What is the
difference between munmap and store_read so that store_read have to not return EINVAL
on invalid arguments?
Moreover, every program that uses store_read must check if I/O errors occured. So the
EINVAL will always be caught ;-)
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://savannah.gnu.org/patch/?func=detailpatch&patch_id=1754&group_id=30
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd