Mounting more than one ubifs fails on 2.6.31-rc2

Artem Bityutskiy dedekind at infradead.org
Wed Jul 15 07:52:11 EDT 2009


On Wed, 2009-07-15 at 13:32 +0200, Tobias Diedrich wrote:
> I get the following error when trying to mount a second ubifs:
> "mount: File exists"
> Apparently the problem is that ubifs is registered in /sys/class/bdi
> with it's name 'ubifs' instead of the ubi device major/minor and
> so can only be registered once.
> 
> navi:/home/ranma# mount -t ubifs ubi1:rootfs /mnt/ubi1
> navi:/home/ranma# mount -t ubifs ubi0:rootfs /mnt/ubi0
> mount: File exists
> navi:/home/ranma# umount /mnt/ubi1
> navi:/home/ranma# mount -t ubifs ubi0:rootfs /mnt/ubi0
> navi:/home/ranma# mount -t ubifs ubi1:rootfs /mnt/ubi1
> mount: File exists
> 
> The corresponding kernel error messages is:
> sysfs: cannot create duplicate filename '/class/bdi/ubifs'
> 

Was fixed recently:

http://git.infradead.org/ubifs-2.6.git?a=commit;h=7fcd9c3ecbf09c0a77db7ba01aac75b32fb79a93

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list