1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-13 17:18:32 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Bryn M. Reeves 951676a59e dmsetup: fix error propagation in _display_info_cols()
Commit 3f35146 added a check on the value returned by the
_display_info_cols() function:

  1024         if (!_switches[COLS_ARG])
  1025                 _display_info_long(dmt, &info);
  1026         else
  1027                 r = _display_info_cols(dmt, &info);
  1028
  1029         return r;

This exposes a bug in the dmstats code in _display_info_cols:
the fact that a device has no regions is explicitly not an error
(and is documented as such in the code), but since the return
code is not changed before leaving the function it is now treated
as an error leading to:

  # dmstats list
  Command failed.

When no regions exist.

Set the return code to the correct value before returning.

(cherry picked from commit 29b9ccd261)
2018-07-25 10:55:28 +02:00
autoconf autoconf: Fix py-compile permissions 2016-02-18 01:05:05 +00:00
base radix-tree: fix some bugs in remove_prefix and iterate 2018-05-30 14:21:27 +01:00
conf clean-up: example.conf.in typo 2018-05-14 16:17:01 -05:00
coverity coverity: model few more functions 2017-06-27 12:17:16 +02:00
daemons scan: reopen RDWR during rescan 2018-06-26 12:15:43 -05:00
device_mapper build: rename device-mapper to device_mapper 2018-05-12 18:18:23 +02:00
doc release note: typos 2018-05-24 12:32:16 +01:00
include build: configure detect libaio 2018-05-15 22:02:41 +02:00
lib lvconvert: improve text about splitmirrors 2018-07-23 12:31:28 -05:00
libdaemon tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
libdm libdm: fix buffer overflow 2018-06-21 10:22:24 +02:00
liblvm liblvm2app: add a couple tests 2018-05-17 15:55:44 -05:00
man Revert "man: fix lvreduce example" 2018-06-27 09:19:01 -05:00
nix lockd: Clean up spec 2015-07-04 14:36:57 +02:00
po doc: change fsf address 2016-01-21 12:11:37 +01:00
python python: specify libdm path for linking 2018-05-15 22:02:41 +02:00
scripts systemd: add conficting sockets 2018-06-22 12:32:31 +02:00
spec spec: Enable notify-dbus in builds with dbus 2017-05-26 07:40:09 +02:00
test tests: update with --yes 2018-07-04 13:41:00 +02:00
tools dmsetup: fix error propagation in _display_info_cols() 2018-07-25 10:55:28 +02:00
udev udev: keep systemd vars on change event in 69-dm-lvm-metad.rules for systemd reload 2018-04-17 11:38:12 +02:00
.gitignore gitignore 2018-05-23 16:53:18 +02:00
acinclude.m4 [build] uncomment 'serial 3' in an m4 file. 2018-04-30 09:44:27 +01:00
aclocal.m4 [lib/device/bcache] Tweaks after Kabi's review 2018-04-20 11:10:45 -05:00
configure tests: move into generated file 2018-05-15 22:02:41 +02:00
configure.ac tests: move into generated file 2018-05-15 22:02:41 +02:00
COPYING doc: change fsf address 2016-01-21 12:11:37 +01:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in Revert "build: Calculate dependencies at same time as compiling." 2018-05-04 09:48:40 +01:00
Makefile.in build: lcov reporting for unit tests 2018-05-12 18:18:23 +02:00
README README: Include new github links 2017-09-13 20:20:04 +01:00
TESTING docs: Add TESTING file 2017-12-14 16:45:47 +01:00
VERSION post-release 2018-07-19 18:43:10 +02:00
VERSION_DM post-release 2018-07-19 18:43:10 +02:00
WHATS_NEW post-release 2018-07-19 18:43:10 +02:00
WHATS_NEW_DM post-release 2018-07-19 18:43:10 +02:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sourceware.org/pub/lvm2/
  ftp://sources.redhat.com/pub/lvm2/
  https://github.com/lvmteam/lvm2/releases

The source code is stored in git:
  https://sourceware.org/git/?p=lvm2.git
  git clone git://sourceware.org/git/lvm2.git
mirrored to:
  https://github.com/lvmteam/lvm2
  git clone https://github.com/lvmteam/lvm2.git
  git clone git@github.com:lvmteam/lvm2.git

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing lists for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/lvm-devel

  lvm2-commits@lists.fedorahosted.org (Read-only archive of commits)
  Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel

Website:
  https://sourceware.org/lvm2/

Report upstream bugs at:
  https://bugzilla.redhat.com/enter_bug.cgi?product=LVM%20and%20device-mapper
or open issues at:
  https://github.com/lvmteam/lvm2/issues

The source code repository used until 7th June 2012 is accessible here:
  http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/?cvsroot=lvm2.