svn commit: r319863 - head/usr.sbin/bsdinstall/scripts

Allan Jude allanjude at FreeBSD.org
Mon Jun 12 19:29:32 UTC 2017


Author: allanjude
Date: Mon Jun 12 19:29:31 2017
New Revision: 319863
URL: https://svnweb.freebsd.org/changeset/base/319863

Log:
  bsdinstall: Make ZFS min_auto_ashift adjustment persistent
  
  Reported by:	feld
  Reviewed by:	dteske, tsoome
  MFC after:	3 days
  Sponsored by:	ScaleEngine Inc.
  Differential Revision:	https://reviews.freebsd.org/D10895

Modified:
  head/usr.sbin/bsdinstall/scripts/zfsboot

Modified: head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jun 12 19:13:29 2017	(r319862)
+++ head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jun 12 19:29:31 2017	(r319863)
@@ -1443,6 +1443,12 @@ zfs_create_boot()
 	             'kern.geom.label.gptid.enable=\"0\"' \
 	             $BSDINSTALL_TMPBOOT/loader.conf.zfs || return $FAILURE
 
+	if [ "$ZFSBOOT_FORCE_4K_SECTORS" ]; then
+		f_eval_catch $funcname echo "$ECHO_APPEND" \
+	             'vfs.zfs.min_auto_ashift=12' \
+	             $BSDINSTALL_TMPBOOT/loader.conf.zfs || return $FAILURE
+	fi
+
 	if [ "$ZFSBOOT_SWAP_MIRROR" ]; then
 		f_eval_catch $funcname echo "$ECHO_APPEND" \
 		             'geom_mirror_load=\"YES\"' \


More information about the svn-src-all mailing list