0x8001000D error with Chstat or Remove!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

0x8001000D error with Chstat or Remove!

Post by ne0h »

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
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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...
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Its better you read the ISO directly. ISO format is simple.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

Well, umount probably didn't close file descriptor, i will fix that.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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?
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

You really shouldn't take about shit like this here, it is really barely dev related :)
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Ah I completely forgot about CS0. Better moonlight fixes the bug if that is the problem :)
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

I fixed the bug of unclosed file descriptor.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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 :)
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

** need delete button **
Last edited by ne0h on Mon Dec 08, 2008 9:13 pm, edited 1 time in total.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

Ok, for the first problem if found a solution ( for the unpached cfw ).
With this

Code: Select all

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...
Post Reply