From mboxrd@z Thu Jan 1 00:00:00 1970 From: paul.grabinar@ranbarg.com (Paul Grabinar) Date: Mon, 13 Jul 2015 20:22:45 +0100 Subject: Partitions and end-to-end protection In-Reply-To: References: <55A40881.5000108@ranbarg.com> Message-ID: <55A41005.9060808@ranbarg.com> On 13/07/15 20:16, Keith Busch wrote: > On Mon, 13 Jul 2015, Paul Grabinar wrote: >> What seems to be happening is that the driver starts off by setting the >> capacity to zero whilst it validates the meta-data configuration and >> then sets the real size after this validation. However, setting the >> capacity does not seem to be enough to tell the kernel to re-read the >> partition table. > > The driver did it this way because we need a disk allocated before we can > subscribe to block integrity extensions. I think we can fix the partition > issue by making a call to blkdev_reread_part() right after the second > revalidate_disk if the namespace is a meta-data formatted. I'll test it > out and post a patch if it works out. > Thanks Keith.