Hey Dave, thanks for the patch review! Pretty much all of what you wrote sounds good to me, there's just one or two items I wanted to clarify - those comments are inline. Thanks again, On Thu, Jul 10, 2014 at 10:43:30AM +1000, Dave Chinner wrote: > On Wed, Jul 09, 2014 at 03:41:50PM -0700, Mark Fasheh wrote: > > + > > +# Enable qgroups now that we have our filesystem prepared. This > > +# will kick off a scan which we will have to wait for below. > > +$BTRFS_UTIL_PROG qu en $SCRATCH_MNT > > +sleep 30 > > That seems rather arbitrary. The sleeps you are adding add well over > a minute to the runtime, and a quota scan of a filesystem with 200 > files should be almost instantenous. Yeah I'll bring that back down to 5 seconds? It's 30 from my testing because I was being paranoid and neglected to update it for the rest of the world. > > +_scratch_unmount > > +_scratch_mount > > What is the purpose of this? This is kind of 'maximum paranoia' again from my own test script. The idea was to make _absolutely_ certain that all metadata found it's way to disk and won't be optimized in layout any more. There's a decent chance it doesn't do anything but it doesn't seem a huge deal. I wasn't clear though - do you want it removed or can I comment it for clarity? > > +# Ok, delete the snapshot we made previously. Since btrfs drop > > +# snapshot is a delayed action with no way to force it, we have to > > +# impose another sleep here. > > +$BTRFS_UTIL_PROG su de $SCRATCH_MNT/snap1 > > +sleep 45 > > That's indicative of a bug, yes? No, that's just how it happens. In fact, if you unmount while a snapshot is being dropped, progress of the drop will be recorded and it will be continued on next mount. However, since we *must* have the drop_snapshot complete for this test I have the large sleep. Unlike the previous sleep I don't think this can be reduced by much :( --Mark -- Mark Fasheh -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html