]> sourceware.org Git - lvm2.git/commit
command: refactor code for simplier lookup
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 12 May 2024 13:39:18 +0000 (15:39 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 13 May 2024 00:15:55 +0000 (02:15 +0200)
commit5840f90e828632f96fdce36a529fc2df1e743ba2
tree271b428ec3c2c7d169978b8caf82b82f2e960738
parent82617852a4d3c89b09124eddedcc2c1859b9d50e
command: refactor code for simplier lookup

We can more efficiently use command_name struct to
lookup for  lvm_command_enum and avoid many repeated
command name searches since we already know
the enum index that is now stored in 'struct command'.
tools/command.c
tools/command.h
tools/man-generator.c
This page took 0.036728 seconds and 5 git commands to generate.