/dev/fs: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
added ioctl table
Crediar (talk | contribs)
m added some information about the input of 'CreateFile'
Line 30: Line 30:


Ioctls:
Ioctls:




Line 42: Line 44:
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x9
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x9
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #dde;" | CreateFile
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #dde;" | CreateFile
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 0x4C bytes?  probably the absolute pathname to create
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 0x4C bytes. First 0x40 are used for the filename, 0x40-0x45 are unused,0x46-0x48 unknown but used, 0x49 is used for the attribute, 0x4A-0x4C unused.
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #fe9;" | 0
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #fe9;" | 0
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" |
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" |
|- style="background-color: #ddd;"
|- style="background-color: #ddd;"
|}
|}

Revision as of 15:49, 3 March 2008

The filesystem can be directly accessed through "/dev/fs".

There are several IOS functions for FS like Delete/Create/List/Rename/.. .

Files can be directly opened with IOS_Open("/tmp/data.bin",1);



The root folder looks like that:

/tmp

/meta

/import

/shared2

/shared1

/title

/ticket

/sys

For a more detailed example of how the file system structure can look, see http://www.openwii.org/forums/viewtopic.php?p=1241#1241.


Ioctls:



Request number Name input output notes
0x9 CreateFile 0x4C bytes. First 0x40 are used for the filename, 0x40-0x45 are unused,0x46-0x48 unknown but used, 0x49 is used for the attribute, 0x4A-0x4C unused. 0