Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 16:00:09 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-geom@freebsd.org
Cc:        freebsd-fs@freebsd.org
Subject:   ZFS stripesize patch (in the context of 4k sector drives)
Message-ID:  <ibjkpq$m03$1@dough.gmane.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ibjkpq$m03$1>