From mboxrd@z Thu Jan 1 00:00:00 1970 From: paul.grabinar@ranbarg.com (Paul Grabinar) Date: Wed, 28 Jan 2015 21:46:57 +0000 Subject: [PATCH] NVMe: Skip namespaces with interleaved meta-data In-Reply-To: References: <1422382021-15350-1-git-send-email-keith.busch@intel.com> <1422395867952.40819@hgst.com> <54C94B90.20805@ranbarg.com> Message-ID: <54C958D1.3010209@ranbarg.com> On 28/01/15 21:16, Keith Busch wrote: > I was trying something similar to SCSI, and I think Christoph may > approve. Instead of all the logic deciding which namespace to attach > and which to bail, attach all namespaces from NSID 1 to the max, then: > > set_capacity(ns->disk, 0); > > Wait to initialize the format in nvme_revalidate_disk. If it's a usable > format, set capacity and sector accordingly, and leave capacity at 0 if > not. For metadata formats, leave the capacity at 0 until block integrity > extensions can be registered, then rescan. What happens if you switch on and off meta-data dynamically with /sys/block//integrity/write_generate and /sys/block//integrity/read_verify?