]> sourceware.org Git - lvm2.git/commit
report: select: add help for creating selections
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 29 May 2014 07:42:14 +0000 (09:42 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 17 Jun 2014 14:27:21 +0000 (16:27 +0200)
commit6d667adeeab7eb7b88a596ebd998fa0a32a4f61c
treea1e42c5240e9e6eb323f6763d91ea1418047cc44
parent03a3f6078de3790a6fca3db8deb4bd204df611f1
report: select: add help for creating selections

The "<lvm command> -S/--select help" shows help (including list of fields to match against):

  ...field list here including the field type name...

  Selection operands
  ------------------
    field               - Reporting field.
    number              - Non-negative integer value.
    size                - Floating point value with units specified.
    string              - Characters quoted by ' or " or unquoted.
    string list         - Strings enclosed by [ ] and elements delimited by either
                          "all items must match" or "at least one item must match" operator.
    regular expression  - Characters quoted by ' or " or unquoted.

  Selection operators
  -------------------
    Comparison operators:
        =~  - Matching regular expression.
        !~  - Not matching regular expression.
         =  - Equal to.
        !=  - Not equal to.
        >=  - Greater than or equal to.
         >  - Greater than
        <=  - Less than or equal to.
         <  - Less than.

    Logical and grouping operators:
        &&  - All fields must match
         ,  - All fields must match
        ||  - At least one field must match
         #  - At least one field must match
         !  - Logical negation
         (  - Left parenthesis
         )  - Right parenthesis
         [  - List start
         ]  - List end
libdm/libdm-report.c
tools/reporter.c
This page took 0.038424 seconds and 5 git commands to generate.