David S. Miller's patch fix: N4k: failled to mount / rw since initscripts-2.85-12
Hi all,
Here is the corresponding patch for 2.6.5-rc2-pa3:
--- linux-2.6.5-rc2-pa3/arch/parisc/kernel/sys_parisc32.c.orig 2004-03-01
07:47:39.000000000 +0100
+++ linux-2.6.5-rc2-pa3/arch/parisc/kernel/sys_parisc32.c 2004-03-26 17:15:41.300604464
+0100
@@ -651,14 +651,13 @@
if (err)
goto out;
- if (!type_page) {
- err = -EINVAL;
- goto out;
+ if (type_page) {
+ is_smb = !strcmp((char *)type_page, SMBFS_NAME);
+ is_ncp = !strcmp((char *)type_page, NCPFS_NAME);
+ } else {
+ is_smb = is_ncp = 0;
}
- is_smb = !strcmp((char *)type_page, SMBFS_NAME);
- is_ncp = !strcmp((char *)type_page, NCPFS_NAME);
-
err = copy_mount_stuff_to_kernel((const void *)(unsigned long)data, &data_page); if (err)
goto type_out;
==========><=========
hth,
Joel
PS1: because of bad wraping of my webmail interface I also attach it, sorry.
PS2: let me know if somebody is still interested by the corresponding 2.4 patch?
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
arch/parisc/kernel/sys_parisc32.c renamed from arch/parisc/kernel/sys_parisc32.c.orig +5 -6
@@ -651,14 +651,13 @@if (err) goto out; -if (!type_page) { - err = -EINVAL ; - goto out; +if (type_page) { + is_smb = !strcmp ((char *)type_page,SMBFS_NAME ); + is_ncp = !strcmp ((char *)type_page,NCPFS_NAME ); + }else { + is_smb = is_ncp =0 ; } - is_smb = !strcmp ((char *)type_page,SMBFS_NAME ); - is_ncp = !strcmp ((char *)type_page,NCPFS_NAME ); - err =copy_mount_stuff_to_kernel ((const void *)(unsigned long )data, &data_page);if (err) goto type_out;