Isilon / isilon_sdk_python

Official generated source of the Isilon SDK Python language bindings.
36 stars 33 forks source link

Determine file_type for removed files/directory in snapshot change list output #54

Closed bradley101 closed 1 year ago

bradley101 commented 2 years ago

We are working on the Isilon snapshot change list response and we had some confusion. For any removed file or directory, we are not able to identify if that entry was a file or a directory.

response for file

{
  "atime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "btime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "change_types": [
    "ENTRY_REMOVED",
    "ENTRY_PARENT_REMOVED"
  ],
  "ctime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "data_pool": 3,
  "file_type": "(REMOVED)",
  "gid": 0,
  "id": "2305843078064634944",
  "lin": 4303183812,
  "metadata_pool": 3,
  "mtime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "parent_lin": 4303183810,
  "path": "/d2/d1/d2/file002.bin",
  "physical_size": 75264,
  "size": 20742,
  "uid": 0,
  "user_flags": [
    "inherit",
    "writecache",
    "wcinherit"
  ]
}

response for deleting directory

{
  "atime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "btime": {
    "nsec": 0,
    "sec": 1652868632
  },
  "change_types": [
    "ENTRY_REMOVED",
    "ENTRY_PARENT_REMOVED"
  ],
  "ctime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "data_pool": 2,
  "file_type": "(REMOVED)",
  "gid": 0,
  "id": "2305843078064634912",
  "lin": 4303183810,
  "metadata_pool": 2,
  "mtime": {
    "nsec": 0,
    "sec": 1652868637
  },
  "parent_lin": 4303183809,
  "path": "/d2/d1/d2",
  "physical_size": 34816,
  "size": 290,
  "uid": 0,
  "user_flags": [
    "inherit",
    "writecache",
    "wcinherit"
  ]
}

we want to identify if an entry is for file or directory. How can we do that?

nalinkanwar commented 1 year ago

This looks like a question related to OneFS API rather than SDK. Please file this as a question to OneFS using official support channels. This Issues page is for SDK related issues only.