Bug #16176
closedobjectmap does not show object existence correctly
0%
Description
in the latest master, i create 10GB rbd and use rbd bench-write to fill objects, and i used "ctrl + c" to terminate bench-write process, then i check objects,it shows there are 26 objects
[root@ctrl src]# ./rados -c /mnt/data/devs/ceph.conf -p rbd ls | grep rbd_data.113a74b0dc51 | wc -l
2016-06-07 10:02:45.681910 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:02:45.682067 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:02:45.713863 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
26
[root@ctrl src]#
but when i use 'rbd du' to disk usage, it only shows that only 6 objects exist, and the objectmap flag is valid
NAME PROVISIONED USED
test 10240M 24576k
[root@ctrl src]# ./rbd -c /mnt/data/devs/ceph.conf -p rbd info test
2016-06-07 10:03:55.902227 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:03:55.902758 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:03:55.935078 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
rbd image 'test':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.113a74b0dc51
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
Files