bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
102 stars 41 forks source link

block_size does not represent the size of response diff areas #101

Closed ddeka0 closed 1 year ago

ddeka0 commented 1 year ago

https://github.com/bseltz-cohesity/scripts/blob/fbdc32b6690b102536605be87743644d31d820a0/powershell/pureSnapDiff/pureSnapDiff.ps1#L120

For example:



``` api/1.4/volume/Debashish-deka-123.snap3/diff?offset=0&length=10737418240&block_size=10485760&base=Debashish-deka-123.snap2

[
    {
        "length": 1080033280,
        "offset": 0
    },
    {
        "length": 1090519040,
        "offset": 2139095040
    },
    {
        "length": 1080033280,
        "offset": 4288675840
    },
    {
        "length": 1080033280,
        "offset": 6438256640
    },
    {
        "length": 1080033280,
        "offset": 8587837440
    }
]
bseltz-cohesity commented 1 year ago

Ah I see what you mean. I've updated the script to tally the lengths. Thanks!