Sample output:
rados -p pool listsnaps testfile
testfile:
cloneid snaps size overlap
3 2,3 1152 [0~128,256~128,512~128,768~128,1024~128]
4 4 1280 [0~128,256~256,768~256,1152~128]
head - 1280
rados -p pool listsnaps testfile --format=json --pretty_format
{ "name": "testfile",
"clones": [
{ "id": 3,
"snapshots": [
{ "id": 2},
{ "id": 3}],
"size": 1152,
"overlaps": [
{ "start": 0,
"length": 128},
{ "start": 256,
"length": 128},
{ "start": 512,
"length": 128},
{ "start": 768,
"length": 128},
{ "start": 1024,
"length": 128}]},
{ "id": 4,
"snapshots": [
{ "id": 4}],
"size": 1280,
"overlaps": [
{ "start": 0,
"length": 128},
{ "start": 256,
"length": 256},
{ "start": 768,
"length": 256},
{ "start": 1152,
"length": 128}]},
{ "id": "head",
"snapshots": [],
"size": 1280}]}
rados -p pool listsnaps testfile --format=xml --pretty_format
<object>
<name>testfile</name>
<clones>
<clone>
<id>3</id>
<snapshots>
<snapshot>
<id>2</id>
</snapshot>
<snapshot>
<id>3</id>
</snapshot>
</snapshots>
<size>1152</size>
<overlaps>
<section>
<start>0</start>
<length>128</length>
</section>
<section>
<start>256</start>
<length>128</length>
</section>
<section>
<start>512</start>
<length>128</length>
</section>
<section>
<start>768</start>
<length>128</length>
</section>
<section>
<start>1024</start>
<length>128</length>
</section>
</overlaps>
</clone>
<clone>
<id>4</id>
<snapshots>
<snapshot>
<id>4</id>
</snapshot>
</snapshots>
<size>1280</size>
<overlaps>
<section>
<start>0</start>
<length>128</length>
</section>
<section>
<start>256</start>
<length>256</length>
</section>
<section>
<start>768</start>
<length>256</length>
</section>
<section>
<start>1152</start>
<length>128</length>
</section>
</overlaps>
</clone>
<clone>
<id>head</id>
<snapshots>
</snapshots>
<size>1280</size>
</clone>
</clones>
</object>