]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: abort on ioctl(BLKGETNRZONES) failure
authorKefu Chai <k.chai@proxmox.com>
Mon, 11 May 2026 05:27:42 +0000 (13:27 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 12 May 2026 03:03:03 +0000 (11:03 +0800)
commitf9acf620bb20f313a4a4dbca6f22fe3306ffc0be
tree109676689641b45fb6c0a0dbe63b722e89ae0d2b
parentf8cde1e00fbf6d7b7815ec79a7340bd09fa54331
crimson: abort on ioctl(BLKGETNRZONES) failure

previously, we did not check the return value of ioctl(BLKGETNRZONES).

we query the number of zones of the storage device to determine which
seastore backend to use. the only possible error from this ioctl is
-EFAULT (invalid user pointer), which indicates a programming error
and should never happen in practice. use ceph_assert() to catch this.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/os/seastore/segment_manager.cc