Serious problem with / and mount points

Sylvain Petreolle spetreolle at yahoo.fr
Mon Dec 16 23:26:37 CST 2002


 --- Tony Lambregts <tony_lambregts at telusplanet.net> a écrit : > Jeff
Smith wrote:
> 
> > What I have so far:
> >  in files/dos_fs.c:1343, drive is receiving the value -1.
> >  at line 1358, this is blindly added to 'A'.  As you may
> >  know, in ASCII, 'A' - 1 = '@'.
The problem is that we don't check the status of DRIVE_FindDriveRoot,
as you spotted it.
The sources clearly states that -1 is error.

> >
> >  The next step is to determine why DRIVE_FindDriveRoot is
> >  returning -1. 
> 
> Well the reason DRIVE_FindDriveRoot is returning -1 is that 
>  DOSDrives[drive].ino does not equal st.st_ino anymore. Line 440 of 
> drive.c is as follows
> 
>            if ((DOSDrives[drive].dev == st.st_dev) &&
>                    (DOSDrives[drive].ino == st.st_ino))
> 
> 
>  
> 
> >
> >
> >  BTW, the same occurred in the reverse situation:
> >    (konsole) mount /mnt/cdrom
> >    (konsole) wcmd
> >    (wcmd) D:
> >    (wcmd) dir
> >    (konsole) umount /mnt/cdrom
> >    (wcmd) dir
> >  Now I am at @>
> >  If I remount and dir again, I am back to D>
> >
> Same problem with floppys  too.
> 
> -- 
> 
> Tony Lambregts
> 
> 
>  

=====
Sylvain Petreolle
spetreolle at users.sourceforge.net 
Fight against Spam ! http://www.euro.cauce.org/en/index.html
ICQ #170597259

"Don't think you are. Know you are." Morpheus in Matrix, chapter 15.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the wine-devel mailing list