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 

0x8001000D error with Chstat or Remove!

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



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu Dec 04, 2008 3:13 am    Post subject: 0x8001000D error with Chstat or Remove! Reply with quote

Hi,
I'm trying to change the creation date of an ISO to modify the XMB position, but when I do some Chstat get always 0x8001000D!
The same thing if I try to delete it...
so 0x8001000D is file access denided, right?
How can I solve this problem? And why 0x8001* errors there's not in the SDK?

ne0h
_________________
Get Xplora!
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Thu Dec 04, 2008 3:23 am    Post subject: Reply with quote

That's because the file is read only. Change the permissions of the file manually with your OS, or in the psp with kernel mode.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu Dec 04, 2008 3:40 am    Post subject: Reply with quote

No, I've already take checked this! :(
The strange thing is that I've this error only with the first file in the "ISO" folder from a alphasorted list, and only with isos!
I'm working on a "Homebrew Sorter" to sort the XMB icons, for all the elements I get the icon and the name.
Can the problem be related to this things?

EDIT:
If I try to delete the file before running the homebrew sorter ( from the main file manager ) I doesn't get any error! The file is deleted immediately! :(
I've to investigate on the code, probably a non closed file descriptor or something else...
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu Dec 04, 2008 3:56 am    Post subject: Reply with quote

Ok,
to get the file inside the ISOs I'm using sctrlSEMountUmdFromFile ( with NO-UMD ) to mount it as UMD and I get the files directly from disc0:, at the end, when I've read the image and the name I use sctrlSEUmountUmd to unmount the umd ( and close the iso file? )!
But this is the problem, if I doesn't use these functions ( and I doesn't get the name and the icon ) the file can be deleted with no one problem and Chstat works great!
Why? I've to do something else to close the file?
Sorry for my english

ne0h
_________________
Get Xplora!
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Dec 04, 2008 7:53 pm    Post subject: Reply with quote

Its better you read the ISO directly. ISO format is simple.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Dec 05, 2008 12:03 am    Post subject: Reply with quote

Well, umount probably didn't close file descriptor, i will fix that.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sat Dec 06, 2008 6:43 am    Post subject: Reply with quote

Torch, if I've to open a CSO? I think that if I can open and browser the content as a simple UMD is better then write a new ISO\CSO browser!
moonlight, I've just see the update!
Thanks!
Anyway, systemctrl is changed since 4.01?
_________________
Get Xplora!
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Dec 06, 2008 9:16 am    Post subject: Reply with quote

You really shouldn't take about shit like this here, it is really barely dev related :)
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Dec 06, 2008 11:59 am    Post subject: Reply with quote

Ah I completely forgot about CS0. Better moonlight fixes the bug if that is the problem :)
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun Dec 07, 2008 3:08 am    Post subject: Reply with quote

I fixed the bug of unclosed file descriptor.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Dec 07, 2008 3:17 am    Post subject: Reply with quote

TyRaNiD wrote:
You really shouldn't take about shit like this here, it is really barely dev related :)


Well, the OP was dev related, but the solution turned out to be not :)
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun Dec 07, 2008 3:58 am    Post subject: Reply with quote

moonlight, I've see and thanks very much, but if is possible I'll make my programm run only on the 4.01 and highter firmware, but what I can do to resolve this problem?
Anyway if is difficult or impossible I can release my prog only for the last cfw
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Mon Dec 08, 2008 9:11 pm    Post subject: Reply with quote

** need delete button **
_________________
Get Xplora!


Last edited by ne0h on Mon Dec 08, 2008 9:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Mon Dec 08, 2008 9:12 pm    Post subject: Reply with quote

moonlight, just updated, works perfectly!
Thanks very much!

EDIT:
moonlight, sorry but maybe I've found another bug! :(
When I launch the Homebrew sorter works all perfectly and the list is saved as well, but the last ISO mounted doesn't be unmounted, when I go in the UMD I can see the ISO, but sctrlSEUmountUmd is called and returns 0, why?
I've tried to launch 4.01 M33-2 from TM and I get the same "error".
The only difference is that in the 5.00 M33-4 I can do some sceChstat on the file ( but not delete it, if I try I got 0x8001000D) , instead on 4.01 I can't Chstat the file and delete it, but the last file remain mounted!
Anyway maybe the problem is in my code,
give me some time, I'll investigate on it!
Anyway thanks and excuse me for my terrible english...

EDIT AGAIN:
Ok, if I try to delete the file immediately after sctrlSEUmountUmd the file is deleted correctly, but...
... when I go to browse the UMD I can find a empty disc!
So the file is unmounted correctly ( returns 0 ) but is not unmounted from the UMD, I have the ISO mounted with no-umd!
( I've tried to dump the UMD and finally I've 2 ISOs of the same game! -.- )
Thanks

ne0h
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Fri Jan 02, 2009 1:53 am    Post subject: Reply with quote

Ok, for the first problem if found a solution ( for the unpached cfw ).
With this
Code:
sceIoDevctl("ms0:", 0x0240D81E, NULL, 0, NULL, 0 );

I can close all fd, so I can Chstat the files on unpatched cfw.
Now, anyone know something like it but to reset the UMD Disc?
Or to reset UMD State...
_________________
Get Xplora!
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 -> PSP 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