[lvm-devel] Re: [PATCH 2/6] Add devices/data_alignment_offset_detection to lvm.conf.

Mike Snitzer snitzer at redhat.com
Thu Jul 16 21:00:42 UTC 2009


On Thu, Jul 16 2009 at  2:47pm -0400,
Milan Broz <mbroz at redhat.com> wrote:

> Mike Snitzer wrote:
> > +	if (dm_snprintf(path, PATH_MAX, "%s/dev/block/%d:%d/%s",
> > +			sysfs_dir, MAJOR(dev->dev), MINOR(dev->dev),
> > +			attribute) < 0) {
> > +		log_error("dm_snprintf %s failed", attribute);
> > +		return 0;
> > +	}
> >
> >   
> this segfaults here on 32bit...

Odd.. I mean is it obvious to you _why_ that would be the case?

Thanks for your fix.

Mike




More information about the lvm-devel mailing list