rbd erasure code

hello. I try to create rbd pool with erasure code profile and mount rbd device, but have an error when try to mkfs.xfs.
Steps to reproduce:
ceph osd erasure-code-profile set 2DC k=2 m=2 crush-failure-domain=host
ceph osd pool create ec-rbd 1024 erasure 2DC
ceph osd pool set ec-rbd allow_ec_overwrites true
ceph osd pool application enable ec-rbd rbd
rbd create rbd-pool/vladimir-hdd4 --size 5G --data-pool ec-rbd

mkfs.xfs /dev/rbd0
mkfs.xfs: Use the -f option to force overwrite.
mkfs.xfs /dev/rbd0 -f
existing superblock read failed: Input/output error
mkfs.xfs: pwrite64 failed: Input/output error

dmesg output:
[1661957.655000] rbd0: unable to read partition table
[1661957.655878] rbd: rbd0: capacity 5368709120 features 0x81
[1661957.681772] rbd: rbd0: read 1000 at 13fff0000 (3f0000)
[1661957.682161] rbd: rbd0: result -1 xferred 1000
[1661957.682518] blk_update_request: I/O error, dev rbd0, sector 10485632
[1661957.683992] rbd: rbd0: read 1000 at 13fff0000 (3f0000)
[1661957.684380] rbd: rbd0: result -1 xferred 1000
[1661957.684739] Buffer I/O error on dev rbd0, logical block 1310704, async page read

I’d say you should first create a partition on that rbd device and then try to create a filesystem.