UNSOLVED

SadhanaP

updated

4 years ago

S

SadhanaP

10 Posts

0

535

June 9th, 2022 23:00

Mapping changelist lins read using REST api to actual File LIN

API: GET /platform/1/snapshot/changelists/ /lins

Sample Response:

{
"atime":{
"nsec":0,
"sec":1651226075
},
"ctime":{
"nsec":0,
"sec":1651226075
},
"id":"68756240656",
"mtime":{
"nsec":0,
"sec":1651226075
},
"path":"/data/test_files",
"size":46943,
"type":"directory"
}

Need some information to map "id" reported in above response with the actual file LIN.

File deletion case:

Actual LIN 4298240583                                                    100000000001100011111001001000111
Reported ID 2305843077985543280  10000000000000000000000001000000000011000111110010010001110000

(Please note shift by 4 and 61st bit set to one)

File modification case:

Actual LIN 4297265041  100000000001000110000111110010001
Reported ID 68756240656  1000000000010001100001111100100010000

(Please note shift by 4)

Is this a standard mechanism and can we assume same will be applicable in all cases?