Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2018 21:26:03 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r337013 - vendor-sys/illumos/dist/uts/common/fs/zfs
Message-ID:  <201807312126.w6VLQ3qw048754@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Jul 31 21:26:03 2018
New Revision: 337013
URL: https://svnweb.freebsd.org/changeset/base/337013

Log:
  9194 mechanism to override ashift at pool creation time
  
  illumos/illumos-gate@93a1902e519bf492c071b48ffb93e5c1c7b53fb9
  
  Reviewed by: Serapheim Dimitropoulos <serapheim@delphix.com>
  Reviewed by: Prakash Surya <prakash.surya@delphix.com>
  Reviewed by: Allan Jude <allanjude@freebsd.org>
  Reviewed by: Igor Kozhukhov <igor@dilos.org>
  Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
  Approved by: Dan McDonald <danmcd@joyent.com>
  Author:     Matthew Ahrens <mahrens@delphix.com>

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/vdev.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/vdev.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/vdev.c	Tue Jul 31 21:09:32 2018	(r337012)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/vdev.c	Tue Jul 31 21:26:03 2018	(r337013)
@@ -96,6 +96,8 @@ int vdev_dtl_sm_blksz = (1 << 12);
  */
 int vdev_standard_sm_blksz = (1 << 17);
 
+int zfs_ashift_min;
+
 /*PRINTFLIKE2*/
 void
 vdev_dbgmsg(vdev_t *vd, const char *fmt, ...)
@@ -1511,6 +1513,7 @@ vdev_open(vdev_t *vd)
 		vd->vdev_asize = asize;
 		vd->vdev_max_asize = max_asize;
 		vd->vdev_ashift = MAX(ashift, vd->vdev_ashift);
+		vd->vdev_ashift = MAX(zfs_ashift_min, vd->vdev_ashift);
 	} else {
 		/*
 		 * Detect if the alignment requirement has increased.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807312126.w6VLQ3qw048754>