Project

General

Profile

Bug #8268 » 0001-8268-NVMe-driver-needs-to-ignore-namespaces-that-spe.patch

Hans Rosenfeld, 2017-05-31 02:02 PM

View differences:

usr/src/uts/common/io/nvme/nvme.c
2104 2104
	 * We currently don't support namespaces that use either:
2105 2105
	 * - thin provisioning
2106 2106
	 * - protection information
2107
	 * - illegal block size (< 512)
2107 2108
	 */
2108 2109
	if (idns->id_nsfeat.f_thin ||
2109 2110
	    idns->id_dps.dp_pinfo) {
......
2112 2113
		    "thin = %d, pinfo = %d", nsid,
2113 2114
		    idns->id_nsfeat.f_thin, idns->id_dps.dp_pinfo);
2114 2115
		ns->ns_ignore = B_TRUE;
2116
	} else if (ns->ns_block_size < 512) {
2117
		dev_err(nvme->n_dip, CE_WARN,
2118
		    "!ignoring namespace %d, unsupported block size %"PRId64,
2119
		    nsid, (uint64_t)ns->ns_block_size);
2115 2120
	} else {
2116 2121
		ns->ns_ignore = B_FALSE;
2117 2122
	}
(2-2/2)