This issue could not be reproduced on Samsug nvme disk(ThinkPad P14s). UDisks reads a valid capacity directly from the controller. A controller update retains the correct size. But on KIOXIA(ThinkPad L14 Gen 6) the controller reports zero, so UDisks must calculate capacity from the namespace.
I tried to backport the patch to 26.04 first with LLM assisted, from my verification this issue is fixed on 'ThinkPad L14 Gen 6' with KIOXIA nvme. I still need sometime to review them, I will finish my backport for 24.04, 26.04 and 26.10 at the end of next week. After that I will find a sponsor to help upload the ubuntu archive. @racheljjwang https://github.com/storaged-project/udisks/pull/1457/commits + +# LP: #2092504 - upstream NVMe capacity fix and its dependencies. +# This replaces the superseded nvme-disk-size.patch workaround. +lp2092504-01-tests-Do-not-unlink-nvme-target-backing-files-after-setup.patch +lp2092504-02-tests-Add-nvme-namespace-detach-attach-tests.patch +lp2092504-03-tests-Add-nvme-detach-all-disconnect-test.patch +lp2092504-04-tests-Wait-for-requested-nvme-controllers-to-become-live.patch +lp2092504-05-tests-Extend-the-local-nvme-target-setup-with-tcp.patch +lp2092504-06-tests-Add-TCP-transport-test-for-NVMe-fabrics-connection.patch +lp2092504-07-tests-Add-IPv6-TCP-transport-test-and-module-availability-check.patch +lp2092504-08-tests-Add-nvme-multipath-tests-over-loop-and-tcp.patch +lp2092504-09-udiskslinuxprovider-Track-NVMe-subsystems.patch +lp2092504-10-udiskslinuxprovider-Filter-invalid-NVMe-Subsystem-NQN-values-out.patch +lp2092504-11-udiskslinuxdriveobject-Update-object-interfaces-on-NVMe-subsystem-uevent.patch +lp2092504-12-udiskslinuxprovider-Fix-NULL-dereference-on-NVMe-subsystem-remove.patch +lp2092504-13-udiskslinuxprovider-Fix-subsys_nqn-string-memory-ownership.patch +lp2092504-14-udiskslinuxprovider-Handle-NULL-subsys_table.patch +lp2092504-15-udiskslinuxprovider-Track-NVMe-subsystem-sysfs-paths-on-CHANGE-events.patch +lp2092504-16-udiskslinuxprovider-Free-block_objs-array-after-all-subsystem-notifications.patch +lp2092504-17-udiskslinuxdriveobject-Recalculate-NVMe-drive-size-from-subsystem-blocks.patch +lp2092504-18-tests-Trigger-controller-rescan-after-namespace-re-attach-in-test_ns_detach.patch +lp2092504-19-udiskslinuxmanagernvme-Trigger-subsystem-uevent-upon-successful-connect.patch +lp2092504-20-udiskslinuxnvmefabrics-Trigger-subsystem-uevent-on-disconnect.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092504 Title: The disk capacity shows 'unknown' after suspend and resume To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/2092504/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
