linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Damon Wang <damon.devops@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Error on RegEx with lv_tags-fields
Date: Tue, 10 Jul 2018 15:55:00 +0800	[thread overview]
Message-ID: <CABZYMH5S=QMu5Ekr6+cEyPzVY7+pQSOXCyxyC72YX5bdgBRz2g@mail.gmail.com> (raw)
In-Reply-To: <d2fad779-7d58-85e8-87f9-bd9ba657ec05@mglug.de>

I have meet same problem, now I use grep :-D

Damon


Oliver Rath <rath@mglug.de> 于2018年7月9日周一 下午8:33写道:
>
> Hi list,
>
> Im trying to sort some output with lvs using a regex "=~", which results
> in an error:
>
> # lvs -o lv_name,lv_tags -S 'lv_tags=~mac1'
>   dm_report: incompatible comparison type for selection field lv_tags
>
> Otherwise, using the =~ operator on lv_names works well:
>
> # lvs -o lv_name -S 'lv_name=~z'
>   LV
>   z1
>   z2
>   z3
>
> If I see right, I can use the selection type "string list" here, but no
> regex. Is this right? Is there a way to use regex on tags? Im looking
> for a way doing
>
>   "show me all lv's with tags beginning with "abc.."
>
> TfH!
>
> Oliver
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2018-07-10  7:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-09 12:32 [linux-lvm] Error on RegEx with lv_tags-fields Oliver Rath
2018-07-10  7:55 ` Damon Wang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-09  9:11 Oliver Rath
2018-07-10  8:50 ` Peter Rajnoha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABZYMH5S=QMu5Ekr6+cEyPzVY7+pQSOXCyxyC72YX5bdgBRz2g@mail.gmail.com' \
    --to=damon.devops@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).