diff options
Diffstat (limited to 'include/linux/dm-log-userspace.h')
| -rw-r--r-- | include/linux/dm-log-userspace.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/dm-log-userspace.h b/include/linux/dm-log-userspace.h index 0c3c3a2110c4..eeace7d3ff15 100644 --- a/include/linux/dm-log-userspace.h +++ b/include/linux/dm-log-userspace.h | |||
| @@ -370,6 +370,16 @@ | |||
| 370 | #define DM_ULOG_REQUEST_TYPE(request_type) \ | 370 | #define DM_ULOG_REQUEST_TYPE(request_type) \ |
| 371 | (DM_ULOG_REQUEST_MASK & (request_type)) | 371 | (DM_ULOG_REQUEST_MASK & (request_type)) |
| 372 | 372 | ||
| 373 | /* | ||
| 374 | * DM_ULOG_REQUEST_VERSION is incremented when there is a | ||
| 375 | * change to the way information is passed between kernel | ||
| 376 | * and userspace. This could be a structure change of | ||
| 377 | * dm_ulog_request or a change in the way requests are | ||
| 378 | * issued/handled. Changes are outlined here: | ||
| 379 | * version 1: Initial implementation | ||
| 380 | */ | ||
| 381 | #define DM_ULOG_REQUEST_VERSION 1 | ||
| 382 | |||
| 373 | struct dm_ulog_request { | 383 | struct dm_ulog_request { |
| 374 | /* | 384 | /* |
| 375 | * The local unique identifier (luid) and the universally unique | 385 | * The local unique identifier (luid) and the universally unique |
| @@ -383,8 +393,9 @@ struct dm_ulog_request { | |||
| 383 | */ | 393 | */ |
| 384 | uint64_t luid; | 394 | uint64_t luid; |
| 385 | char uuid[DM_UUID_LEN]; | 395 | char uuid[DM_UUID_LEN]; |
| 386 | char padding[7]; /* Padding because DM_UUID_LEN = 129 */ | 396 | char padding[3]; /* Padding because DM_UUID_LEN = 129 */ |
| 387 | 397 | ||
| 398 | uint32_t version; /* See DM_ULOG_REQUEST_VERSION */ | ||
| 388 | int32_t error; /* Used to report back processing errors */ | 399 | int32_t error; /* Used to report back processing errors */ |
| 389 | 400 | ||
| 390 | uint32_t seq; /* Sequence number for request */ | 401 | uint32_t seq; /* Sequence number for request */ |
