forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

fioRemove

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sat Jun 18, 2005 7:15 pm    Post subject: fioRemove Reply with quote

When I call fioRemove to remove a file it outputs :

remove file mc0:/BEDATA-SYSTEM/KL.DAT
mkdir name mc0:/BEDATA-SYSTEM/KL.DAT

I am not sure where these are being output from.

Anyway why is it creating a directory after it has deleted the file?
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Jun 18, 2005 8:03 pm    Post subject: Reply with quote

It's a well known bug in sony's RPC server for fio* functions... They forgot a break in the switch between fioRemove and fioMkdir... So, you have to fioRemove then fioRmdir.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sat Jun 18, 2005 9:57 pm    Post subject: Reply with quote

I suspected that would have been the cause. I guess it can't be fixed then.
Thanks for the info.
Back to top
View user's profile Send private message
MrHTFord



Joined: 10 Feb 2004
Posts: 35
Location: England

PostPosted: Sat Jun 18, 2005 10:17 pm    Post subject: Reply with quote

Pixel gave you an effective work-around.
Back to top
View user's profile Send private message Send e-mail
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Sun Jun 19, 2005 4:19 am    Post subject: Reply with quote

Is there any reason we haven't made ps2sdk work around this automatically?
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jun 19, 2005 8:58 am    Post subject: Reply with quote

Several answers to that:

-) fioRemove is only a rpc call, which would work with different versions of the same irx, bugged, and non bugged. That's not up to that layer to have that fix

-) the correct layer that should have that workaround would be libc, with a rmdir() function (which would make up the path with the current directory, etc)

-) fileXio removes that bug.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group