Make ZFS use the physical sector size when computing initial ashift

Xin Li delphij at delphij.net
Wed Jul 10 18:13:14 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 07/10/13 10:38, Justin T. Gibbs wrote:
[snip]
> I'm sure lots of folks have "some solution" to this.  Here is an 
> old version of what we use at Spectra:
> 
> http://people.freebsd.org/~gibbs/zfs_patches/zfs_auto_ashift.diff
> 
> The above patch is missing some cleanup that was motivated by my 
> discussions with George Wilson about this change in April.  I'll 
> dig that up later tonight.  Even if you don't read the full diff, 
> please read the included checkin comment since it explains the 
> motivation behind this particular solution.
> 
> This is on my list of things to upstream in the next week or so
> after I add logic to the userspace tools to report whether or not
> the TLVs in a pool are using an optimal allocation size.  This is
> only possible if you actually make ZFS fully aware of logical,
> physical, and the configured allocation size.  All of the other
> patches I've seen just treat physical as logical.

Yes, me too.  Your version is superior.

Cheers,
- -- 
Xin LI <delphij at delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJR3aQzAAoJEG80Jeu8UPuzHn8H/1ZpoTqAQ4+mgQOttOwXgBcr
2Fgh52ztW8fCEQSeIosxXKO06hP7HxFfTPvmeeWyjT8zIpSUSFV6G0NclebKDncP
huGFofvx3BKPRmfzZp4iZx1wWQUxSHTmv6ceDwvP7P8GJ0mON+SrZxmmwUjKrf7V
W9Sazl0p8e0nxSQykLyjjrkaBx5Iv+aUxu8Alomwy9BmpM8+gd2yutvzghW5L36L
0CvAtIMXdlc+eUdAqa/2rOk/nMOA9sfWVW0gkKYCZk6wvj2DMzjii05UechZ4Z+l
6nEU3UdVsbTX73CABZv4my4JAWc5Yk1s/cWrxtn68AfK8LMPFJCJcVXXOSckMWI=
=351W
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list