Bug#569290: Acknowledgement (un-prefer /dev/block/* names more	strongly than in lvm.conf)
    Alasdair G Kergon 
    agk at redhat.com
       
    Thu Feb 11 13:12:07 UTC 2010
    
    
  
On Thu, Feb 11, 2010 at 01:17:06AM -0800, Kees Cook wrote:
> Attached patch fixes the issue.
 
> +	m0 = strncmp(path0, "/dev/block/", 11);
> +	m1 = strncmp(path1, "/dev/block/", 11);
/dev should not be hard-coded.  Use cmd->dev_dir so its location can
be changed through lvm.conf.
(The test suite makes use of that and it also makes it easy to 
control exactly what devices lvm sees when trying to reproduce
problems people report.)
Alasdair
    
    
More information about the pkg-lvm-maintainers
mailing list