stable-2.02 - dmsetup: debug print
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=53fcd4fd8fdca852bd8db079f943594c4deeded5 Commit: 53fcd4fd8fdca852bd8db079f943594c4deeded5 Parent: ba629ceea194cc964a6dddb84641254776e58e16 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Aug 16 23:49:38 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Aug 20 12:59:05 2019 +0200
dmsetup: debug print
Udev debugging is a bit tricky, so to more easily pair cookie ID, which is the lowest 16 bit - print cookie as hexa number. This simplify pairing of processed cookies while the 'higher bit flags' are changed for the same cookie.
--- WHATS_NEW_DM | 5 +++-- tools/dmsetup.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-)
WHATS_NEW_DM +3 -2
@@ -1,5 +1,6 @@ -Version 1.02.160 - -================================ +Version 1.02.165 - +================================= + Add debug of dmsetup udevcomplete with hexa print DM_COOKIE_COMPLETED. Fix versioning of dm_stats_create_region and dm_stats_create_region. Parsing of cache status understand no_discard_passdown.
tools/dmsetup.c +1 -0
@@ -1694,6 +1694,7 @@ static int _udevcomplete(CMD_ARGS)if (!(cookie =_get_cookie_value (argv[0 ]))) return_0; +printf ("DM_COOKIE_COMPLETED=0x%-10x" , cookie);/* * Strip flags from the cookie and use cookie magic instead. * If the cookie has non-zero prefix and the base is zero then