From: Oliver Rath <rath@mglug.de>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] in lvm Shell --reportformat json is ignored
Date: Fri, 10 Jul 2020 22:55:06 +0200 [thread overview]
Message-ID: <b2d2e4ca-318e-e9dd-6f53-2ce2952fe932@mglug.de> (raw)
Hi list,
Im wondering, that using lvm commands directly and in a lvm-shell work
different:
lvs --reportformat json
works as expected, but the same command in lvm-shell shows only basic
reportformat:
root@p51:/home/oliver# lvs -o lv_name -S 'lv_name=~^thin' --reportformat
json
{
"report": [
{
"lv": [
{"lv_name":"thintest1"},
{"lv_name":"thintest2"}
]
}
]
}
root@p51:/home/oliver# lvm
lvm> lvs -o lv_name -S 'lv_name=~^thin' --reportformat json
LV
thintest1
thintest2
lvm>
Tfh!
Oliver
reply other threads:[~2020-07-10 21:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b2d2e4ca-318e-e9dd-6f53-2ce2952fe932@mglug.de \
--to=rath@mglug.de \
--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).