Extend the support for DEVLINK_CMD_REGION_GET command to also return the IDs of the snapshot currently present on the region. Each reply will include a nested snapshots attribute that can contain multiple snapshot attributes each with an ID.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -267,6 +267,9 @@ enum devlink_attr { · 266 unmodified lines | |||
| 267 | 267 | ||
| 268 | DEVLINK_ATTR_REGION_NAME, /* string */ | 268 | DEVLINK_ATTR_REGION_NAME, /* string */ |
| 269 | DEVLINK_ATTR_REGION_SIZE, /* u64 */ | 269 | DEVLINK_ATTR_REGION_SIZE, /* u64 */ |
| 270 | DEVLINK_ATTR_REGION_SNAPSHOTS, /* nested */ | ||
| 271 | DEVLINK_ATTR_REGION_SNAPSHOT, /* nested */ | ||
| 272 | DEVLINK_ATTR_REGION_SNAPSHOT_ID, /* u32 */ | ||
| 270 | 273 | ||
| 271 | /* add new attributes above here, update the policy in devlink.c */ | 274 | /* add new attributes above here, update the policy in devlink.c */ |
| 272 | 275 | ||