Project

General

Profile

Bug #8268 » 0005-NVMe-ignore-zero-lbads.patch

Moinak Ghosh, 2017-05-24 08:51 AM

View differences:

usr/src/uts/common/io/nvme/nvme.c Mon May 22 00:05:34 2017 → usr/src/uts/common/io/nvme/nvme.c Mon May 22 00:09:14 2017
2223 2223
			    nvme->n_min_block_size;
2224 2224

  
2225 2225
		/*
2226
		 * Ignore namespaces that specify an unused LBA Format
2227
		 * LBADS == 0
2228
		 */
2229
		if (idns->id_lbaf[idns->id_flbas.lba_format].lbaf_lbads == 0) {
2230
			dev_err(nvme->n_dip, CE_WARN,
2231
			    "!ignoring namespace %d", i + 1);
2232
			nvme->n_ns[i].ns_ignore = B_TRUE;
2233
		}
2234

  
2235
		/*
2226 2236
		 * We currently don't support namespaces that use either:
2227 2237
		 * - thin provisioning
2228 2238
		 * - protection information
(1-1/2)