]> sourceware.org Git - lvm2.git/commit
report: lv_permissions: display read-only/read-only-override instead of blank when...
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 23 Oct 2014 08:18:29 +0000 (10:18 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 23 Oct 2014 08:18:29 +0000 (10:18 +0200)
commit4b611bb816eef3e363e005b48b881e933c3de9e2
tree4ed076347f9932d3c4f2086e29fe873fb9b66470
parent2c8e7821c31245e3f7c1d56a67eb7f38d4b37001
report: lv_permissions: display read-only/read-only-override instead of blank when LV is not writeable

Before this patch:
$ lvs -o name,lv_attr,lv_permissions
  LV    Attr       LPerms
  root  -wi-ao---- writeable
  swap  -wi-ao---- writeable
  lvol0 -Ri-a-----
  lvol1 -ri-a-----
  lvol2 -wi-a----- writeable
  lvol3 -ri-------

With this patch applied:
$ lvs -o name,lv_attr,lv_permissions
  LV    Attr       LPerms
  root  -wi-ao---- writeable
  swap  -wi-ao---- writeable
  lvol0 -Ri-a----- read-only-override
  lvol1 -ri-a----- read-only
  lvol2 -wi-a----- writeable
  lvol3 -ri------- read-only

("read-only-override" is displayed if the "writeable" permission
is overriden based on "activation/read_only_volume_list" lvm.conf
setting)
WHATS_NEW
lib/report/values.h
This page took 0.033168 seconds and 5 git commands to generate.