lvm with -- on the name

Hi All,

I created an lvm filesystem with a name with dash in the middle, like xxx-yyy (note, that it's only one dash).

I was able to create it smoothly with this instructions.

lvcreate -L 1G uservg -n xxx-yyy
ls /dev/uservg/xxx-yyy (check)
mkfs.ext3 /dev/uservg/xxx-yyy
mount /dev/uservg/xxx-yyy /xxx-yyy

But when I do df-k, it will showed like this

/dev/mapper/uservg-xxx--yyy (note, that it have -- dash on it, double dash)

Is that okay? I got error when I'm not the root with doing the df -k of

df: `/xxx-yyy': Permission denied

Although the chmod is 775, it's still making an error like that on the permission.

But it's also okay, if the user owner or group owner will do the df -k, no permission error.

Is the - name allowed on the middle of the filesystem naming on lvm?

Any comment you may add will be highly appreciated. Thanks.

I believe that '-' is an illegal character in logical volume names. See redhat bug 491746.