]> git.baikalelectronics.ru Git - kernel.git/commit
dm log userspace: add version number to comms
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 13 Jan 2011 19:59:52 +0000 (19:59 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 19:59:52 +0000 (19:59 +0000)
commit63f8cba78be659f702ee8e9ebb3a4da94c6f86e1
tree168ccb5f1824e16fb55ac64e2d4754775aeaa958
parent32ee08f5dea4189f16bc8dd7d2398743618b3058
dm log userspace: add version number to comms

This patch adds a 'version' field to the 'dm_ulog_request'
structure.

The 'version' field is taken from a portion of the unused
'padding' field in the 'dm_ulog_request' structure.  This
was done to avoid changing the size of the structure and
possibly disrupting backwards compatibility.

The version number will help notify user-space daemons
when a change has been made to the kernel/userspace
log API.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log-userspace-base.c
drivers/md/dm-log-userspace-transfer.c
include/linux/dm-log-userspace.h