History

devlink: Extend the support querying for region snapshot IDs

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.

Alex Vesker committed 8 years ago

Commit a006d461 parent d8db7ea2 files · +56 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/devlink.h+3−0
@@ -267,6 +267,9 @@ enum devlink_attr { · 266 unmodified lines
267267
268268 DEVLINK_ATTR_REGION_NAME, /* string */
269269 DEVLINK_ATTR_REGION_SIZE, /* u64 */
270+ DEVLINK_ATTR_REGION_SNAPSHOTS, /* nested */
271+ DEVLINK_ATTR_REGION_SNAPSHOT, /* nested */
272+ DEVLINK_ATTR_REGION_SNAPSHOT_ID, /* u32 */
270273
271274 /* add new attributes above here, update the policy in devlink.c */
272275