homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trent
Recipients larry, trent, vstinner
Date 2012年08月31日.23:16:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346454965.49.0.178404805118.issue15748@psf.upfronthosting.co.za>
In-reply-to
Content
Turns out our unit test uncovered a very subtle corner-case bug in ZFS, requiring the following patch to FreeBSD:
a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c
b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c
index 69374fb..7f61517 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c
@@ -1695,6 +1695,7 @@ sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr,
 ASSERT(action == SA_REPLACE);
 SA_ADD_BULK_ATTR(attr_desc, j, attr,
 locator, datastart, buflen);
+ length_idx++;
 } else {
 length = SA_REGISTERED_LEN(sa, attr);
 if (length == 0) {
I guess the unit test should probably be patched to to skip the test IFF the underlying filesystem is ZFS and it exhibits the "length 24" problem. (Actually, detecting if the underlying filesystem is ZFS is non-trivial -- just testing for the "length 24" bug is probably sufficient.) I'll look into this later.
(According to Andriy Gapon (FreeBSD developer that came up with the patch), the bug is likely to affect all ZFS implementations since the beginning of time.)
History
Date User Action Args
2012年08月31日 23:16:05trentsetrecipients: + trent, vstinner, larry
2012年08月31日 23:16:05trentsetmessageid: <1346454965.49.0.178404805118.issue15748@psf.upfronthosting.co.za>
2012年08月31日 23:16:05trentlinkissue15748 messages
2012年08月31日 23:16:04trentcreate

AltStyle によって変換されたページ (->オリジナル) /