Re: determing lvm support

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

 



On Sat, Dec 20, 2003 at 02:35:41PM +0100, Luca Berra wrote:
> Besides that is there any way to reliably check if dm is loaded from a
> c program, besides calling dm_task_run(), which is noisy if the driver
> is not loaded? I don't want the user to see an error if she's not
> running device-mapper.

Look at using dm_log_init() to provide a function that
suppresses all output.

> it the moment i try to open dm_dir()/control, is that ok?
That should work OK bypassing libdevmapper.
Otherwise, try dm_task_get_driver_version() after disabling log output.
 
Alasdair
-- 
agk@uk.sistina.com

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux