| View previous topic :: View next topic |
| Author |
Message |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Dec 04, 2008 3:13 am Post subject: 0x8001000D error with Chstat or Remove! |
|
|
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 |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Thu Dec 04, 2008 3:23 am Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Dec 04, 2008 3:40 am Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Dec 04, 2008 3:56 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Dec 04, 2008 7:53 pm Post subject: |
|
|
| Its better you read the ISO directly. ISO format is simple. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Fri Dec 05, 2008 12:03 am Post subject: |
|
|
| Well, umount probably didn't close file descriptor, i will fix that. |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sat Dec 06, 2008 6:43 am Post subject: |
|
|
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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Dec 06, 2008 9:16 am Post subject: |
|
|
| You really shouldn't take about shit like this here, it is really barely dev related :) |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Dec 06, 2008 11:59 am Post subject: |
|
|
| Ah I completely forgot about CS0. Better moonlight fixes the bug if that is the problem :) |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sun Dec 07, 2008 3:08 am Post subject: |
|
|
| I fixed the bug of unclosed file descriptor. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Dec 07, 2008 3:17 am Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun Dec 07, 2008 3:58 am Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Mon Dec 08, 2008 9:11 pm Post subject: |
|
|
** 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Mon Dec 08, 2008 9:12 pm Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Fri Jan 02, 2009 1:53 am Post subject: |
|
|
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 |
|
 |
|