NFS root broken in 2.6.18-rc2-mm1
FYI,
I tried to boot 2.6.18-rc2-mm1 on a nfsroot system with x86-64 defconfig.
Unfortunately it seems to generate lots of random EIO while reading executables during the startup sequence, which causes some things to break. Writing also doesn't seem to work - it complains about EPERM for that.
Not all executables error out, but at least some.
The same setup works fine with mainline 2.6.18-rc*
-Andi
Quoted 10 lines · Andi Kleen
FYI,
I tried to boot 2.6.18-rc2-mm1 on a nfsroot system with x86-64 defconfig.
Unfortunately it seems to generate lots of random EIO while reading executables during the startup sequence, which causes some things to break. Writing also doesn't seem to work - it complains about EPERM for that.
Not all executables error out, but at least some.The same setup works fine with mainline 2.6.18-rc*
Known issue. The attached patch ought to fix it...
Cheers,
Trond
---
fs/nfs/super.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
fs/nfs/super.c +3 -2
@@ -471,9 +471,10 @@ static int nfs_validate_mount_data(struc data->version);return -EINVAL ; } -/* Fill in pseudoflavor for mount version < 5 */ - data->pseudoflavor =RPC_AUTH_UNIX ;case 5 : +/* Set the pseudoflavor */ +if (!(data->flags &NFS_MOUNT_SECFLAVOUR )) + data->pseudoflavor =RPC_AUTH_UNIX ;memset (data->context,0 ,sizeof (data->context)); }