]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: read full conf object when removing export URL 69541/head
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Wed, 17 Jun 2026 10:18:07 +0000 (15:48 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Wed, 17 Jun 2026 10:19:08 +0000 (15:49 +0530)
commit488c7fdf0940edadbbb2b38c5099cc0e9c9d2348
tree8b8c21ac56dbacd91625ed912a1c65457dcee11b
parent4cd080d6f3dc34bd48dc9d0c580a7568035c9498
mgr/nfs: read full conf object when removing export URL

remove_obj() called ioctx.read() without a length, so only the first
8192 bytes of conf-nfs.* were read before write_full(). Removing exports
from a large cluster truncated and corrupted the shared config object,
leaving malformed entries such as '%url "rados:' while export objects
were deleted.

Fixes: https://tracker.ceph.com/issues/77463
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
src/pybind/mgr/nfs/rados_utils.py