[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] [Bug#250906: lvm10: lvdisplay doesn't give proper return codes]



 
-- 

patrick
--- Begin Message ---
Package: lvm10
Version: 1:1.0.8-3
Severity: normal

|[1/501]root lefler:~$ lvdisplay /dev/vg0/usr; echo $?
|--- Logical volume ---
|LV Name                /dev/vg0/usr
|VG Name                vg0
|LV Write Access        read/write
|LV Status              available
|LV #                   1
|# open                 1
|LV Size                2 GB
|Current LE             64
|Allocated LE           64
|Allocation             next free
|Read ahead sectors     1024
|Block device           58:3
|
|
|0
|[2/502]root lefler:~$ lvdisplay /dev/vg0/usf; echo $?
|lvdisplay -- logical volume "/dev/vg0/usf" doesn't exist
|
|
|0
|[3/503]root lefler:~$ 

In the second case, I would expect a non-zero exit code.

Greetings
Marc

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-zgserver
Locale: LANG=C, LC_CTYPE=C

Versions of packages lvm10 depends on:
ii  debconf                     1.4.25       Debian configuration management sy
ii  file                        4.07-2       Determines file type using "magic"
ii  libc6                       2.3.2.ds1-12 GNU C Library: Shared libraries an
ii  lvm-common                  1.5.14       The Logical Volume Manager for Lin

-- debconf information excluded


--- End Message ---

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]