[PATCH v2] nvme-core: auto add the new ns while UUID changed
Christoph Hellwig
hch at lst.de
Fri Nov 15 09:04:11 PST 2024
On Fri, Nov 15, 2024 at 04:37:27PM +0800, brookxu.cn wrote:
> From: "Chunguang.xu" <chunguang.xu at shopee.com>
>
> Now spdk will change UUID of ns while restarted if we have not
> specified one. At this time, while host try to reconnected to target,
> as UUID have changed, we will remove the old ns, but not add the ns
> with the new UUID.
And that is broken behavior. The host must assume the namespace has
been deleted and recreated when the eui/nguid/uuid change, and we need
to catch this. Fix your broken target code instead.
More information about the Linux-nvme
mailing list