]> sourceware.org Git - lvm2.git/commit
libdm: add dm_bitset_parse_list()
authorBryn M. Reeves <bmr@redhat.com>
Thu, 18 Feb 2016 16:14:43 +0000 (16:14 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 5 Jul 2016 18:53:16 +0000 (19:53 +0100)
commit81fad9e853c45a5c3e56b2bede3a3fc7d7bed30b
treef89210ebf2a4f00693259553a1935ea9a5b6dfb0
parentd382e660356f1095040b8a84b54a0c1db0ab78b1
libdm: add dm_bitset_parse_list()

Add a function to parse a list of integer values and ranges into
a dm_bitset representation. Individual values signify that that bit
is set in the resulting mask and ranges are given as a pair of
start and end values, M-N, such that M and N are the first and
last members of the range (inclusive).

The implementation is based on the kernel's __bitmap_parselist()
that is used for cpumasks and other set configuration passed in
string form from user space.
WHATS_NEW_DM
libdm/.exported_symbols.DM_1_02_129 [new file with mode: 0644]
libdm/datastruct/bitset.c
libdm/libdevmapper.h
This page took 0.03661 seconds and 5 git commands to generate.