Hello,

Any objections to me committing the following patch?

The intention is to use stripesize info from GEOM in creating vdevs, in the hope that the 4 KiB sector magic will work.


Index: cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
===================================================================
--- cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c (revision 215173) +++ cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c (working copy)
@@ -496,7 +496,8 @@
       /*
        * Determine the device's minimum transfer size.
        */
-       *ashift = highbit(MAX(pp->sectorsize, SPA_MINBLOCKSIZE)) - 1;
+ *ashift = highbit(MAX(pp->stripesize ? pp->stripesize : pp->sectorsize,
+           SPA_MINBLOCKSIZE)) - 1;

       /*
        * Clear the nowritecache bit, so that on a vdev_reopen() we will

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[email protected]"

Reply via email to