On Tue, Jan 20, 2015 at 09:02:03PM +0000, Al Viro wrote:
On Tue, Jan 20, 2015 at 09:45:04PM +0100, Sabrina Dubroca wrote:
> printk(KERN_ERR "fn_lookup %s %d\n", name, retval);
>
> and I get:
>
> [ 1.618558] fn_lookup bsg/0:0:0:0 -2
> [ 1.619437] fn_lookup bsg 0
> [ 1.620236] fn_lookup bsg/0:0:0:0 -2
> [ 1.625996] fn_lookup sda 0
> [ 1.626609] fn_lookup sda 0
> [ 1.639007] fn_lookup sda1 0
> [ 1.639691] fn_lookup sda1 0
> [ 1.643656] fn_lookup bsg/1:0:0:0 -2
> [ 1.644974] fn_lookup bsg 0
> [ 1.645928] fn_lookup bsg/1:0:0:0 -2
> [ 1.649483] fn_lookup /dev/ram -2
> [ 1.650424] fn_lookup /dev/root -2
> [ 1.651234] VFS: Cannot open root device "sda1" or unknown-block(8,1):
error -2
That -2 is -ENOENT... Wait a sec, what's in filename, filename->name and
what do you get from your printk on kernel with that commit reverted?
On microblaze target:
patch reverted:
name . rv 0
name usr rv 0
name usr/lib rv 0
name usr/share rv 0
name usr/share/udhcpc rv 0
name usr/bin rv 0
name usr/bin/logger rv 0
...
broken:
filename c78a4000 filename->name c78a4014:. name . rv 0
filename c78a4000 filename->name c78a4014:usr name usr rv 0
filename c78a4000 filename->name c78a4014:usr/lib name usr/lib rv -2
filename c78a4000 filename->name c78a4014:usr/share name usr/share rv -2
filename c78a4000 filename->name c78a4014:usr/share/udhcpc name usr/share/udhcpc rv -2
filename c78a4000 filename->name c78a4014:usr/bin name usr/bin rv -2
filename c78ae000 filename->name c78ae014:usr/bin/logger name usr/bin/logger rv -2
...
Guenter