Current-Users archive

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

Re: 5.99.42/sparc64 - lvm2: error while lvcreate



Hi,

Yeah christos@ made a mistake. It should be working fine with libdm-common.c 
revision 1.7.

On Dec,Wednesday 29 2010, at 11:20 AM, Martin Mersberger wrote:

> Hi...
> 
> When a logical volume is created using lvm2 from today (there's been a
> fix last night) like
> 
> $ lvm lvcreate -n bar -L 4M foo
> 
> the error following error occurs:
> 
> /dev/mapper/rfoo-bar: chown failed: No such file or directory
> 
> 
> After the 'Logical volume created' message, there is only the raw
> rfoo-bar in /dev/mapper and the device for-bar has not created.
> 
> Imho, the following solves the issue (at least, it did for me ;-) )
> 
> 
> 
> regards       
> Martin
> 
> 
> 
> 
> 
> Index: dist/libdm/libdm-common.c
> ===================================================================
> RCS file: /cvsroot/src/external/gpl2/lvm2/dist/libdm/libdm-common.c,v
> retrieving revision 1.6
> diff -r1.6 libdm-common.c
> 460c460
> <     if (chown(path, uid, gid) < 0) {
> ---
>>      if (chown(rpath, uid, gid) < 0) {
> 
> 

Regards

Adam.



Home | Main Index | Thread Index | Old Index