Yes, I'm seeing this unexpectedly fail with EBUSY  (errno 16) instead of
ENOTSUP.  This was definitely caused by the hot spare work, and it's my
fault for not running ztest more rigorously.  I'll file a bug and take a
look.  For now, you can change (in ztest.c):

        if (error == EOVERFLOW)
                expected_error = error;

To:

        if (error == EOVERFLOW || error == EBUSY)
                expected_error = error;

I've been able to run this way for 10 minutes, with the 'rarely ->
always' change.

Sorry about that,

- Eric

On Fri, Jun 09, 2006 at 05:55:14PM +0100, Ricardo Correia wrote:
> Hi,
> 
> I'm wondering if you could shed some light on an issue I'm having in porting 
> libzpool to Linux.
> 
> It seems that ztest is failing in ztest_vdev_attach_detach(). 
> 
> I think you will be able to reproduce it in OpenSolaris. I think the problem 
> is related to the changes done in spa.c from revision 1.14 to revision 1.15 
> (changed in 26-May-2006).
> 
> Could you please try running ztest for a few minutes with the latest sources 
> (>26-May-2006) ?
> 
> You will find the problem a lot faster if you change line 194 in ztest.c
> 
> from: { ztest_vdev_attach_detach,&zopt_rarely},
> to:   { ztest_vdev_attach_detach,&zopt_always},
> 
> I think about 30-45 minutes should be enough to find the problem (usually 
> it's 
> faster).
> 
> Thank you.
> _______________________________________________
> zfs-code mailing list
> zfs-code at opensolaris.org
> http://opensolaris.org/mailman/listinfo/zfs-code

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock

Reply via email to