[dm-devel] [PATCH] libdevmapper: (4/6) Add filtering feature to dm_report
Jun'ichi Nomura
j-nomura at ce.jp.nec.com
Wed Apr 18 16:47:40 UTC 2007
Hi,
This patch adds a filtering feature to dm_report.
- Add dm_report_set_filter() API.
By calling this, dm_report_object() omits rows which doesn't
match the condition specified by the filter.
- Fitlers can be composed with the following components:
* Simple comparison of field value
'==', '!=', '>', '>=', '<', '<='
Strings should be quoted by either ' or ".
Only decimal, non-negative integers are currently allowed.
* Regular expression
'=~', '!~'
Regular expression can be quoted by '/', '|', '#', or any
other characters.
* Logical combinations of the expressions
'and', 'or', '!', '(', ')'
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdm-report-add-filter.patch
Type: text/x-patch
Size: 22659 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20070418/6d576d4d/attachment.bin>
More information about the dm-devel
mailing list