9194 mechanism to override ashift at pool creation time
illumos/illumos-gate@93a1902e51 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>
This commit is contained in:
parent
4f73289938
commit
2dcf06914e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/illumos/dist/; revision=337013
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user