[linux-lvm] determining lv from mount point

Galen Seitz galens at seitzassoc.com
Tue Sep 23 16:53:01 UTC 2003


Montgomery, Kendal L <kendal.montgomery at qwest.com> wrote:

> Well.. The reason I say to do it this way is because lvdisplay doesn't
> seem to give an "error" code on return (it's always 0) when it's not a
> logical volume.  It does display an error message that you'd have to
> parse the output for a specific error message.

I just tried lvdisplay, and now I see what you mean.  I misinterpreted
the lvdisplay man page, thinking I'd get an error on non-lvm paths.

Thanks very much for your help.

galen




More information about the linux-lvm mailing list