locks: Add c/r of breaking leases (kernel>=v4.1)
restore of breaking leases is executed in 2 steps: 1. restore the lease in a state it was before break 2. break it by opening associated file. The patch fixes type of broken leases to 'target lease type', because procfs always returns 'READ' in this case. Also, it adds 'updated' field in lock structure. It's used to remove all duplicated records for single lease from the image, which wasn't corrected by 'correct_lease_type'. Signed-off-by:Pavel Begunkov <asml.silence@gmail.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
Showing
Please
register
or
sign in
to comment