PS2SDK
PS2 Homebrew Libraries
libhdd.h File Reference
#include <tamtypes.h>
#include <hdd-ioctl.h>
#include <libpwroff.h>
+ Include dependency graph for libhdd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_hddFilesystem
 
struct  t_hddInfo
 

Macros

#define PFS_MT_ROBUST   0x02
 
#define FS_COMMON_PREFIX   '+'
 
#define FS_GROUP_SYSTEM   0x00
 
#define FS_GROUP_COMMON   0x01
 
#define FS_GROUP_APPLICATION   0x02
 
#define FS_TYPE_EXT2_SWAP   0x0082
 
#define FS_TYPE_EXT2   0x0083
 
#define FS_TYPE_REISER   0x0088
 
#define FS_TYPE_PFS   0x0100
 
#define FS_TYPE_CFS   0x0101
 
#define FS_TYPE_EMPTY   0x0000
 
#define ATTR_MAIN_PARTITION   0x0000
 
#define ATTR_SUB_PARTITION   0x0001
 
#define hddPreparePoweroff   poweroffInit
 
#define hddSetUserPoweroffCallback   poweroffSetCallback
 
#define hddPowerOff   poweroffShutdown
 

Functions

int hddCheckPresent ()
 
int hddCheckFormatted ()
 
int hddFormat ()
 
int hddGetFilesystemList (t_hddFilesystem hddFs[], int maxEntries)
 
void hddGetInfo (t_hddInfo *info)
 
int hddMakeFilesystem (int fsSizeMB, char *name, int type)
 
int hddRemoveFilesystem (t_hddFilesystem *fs)
 
int hddExpandFilesystem (t_hddFilesystem *fs, int extraMB)
 

Detailed Description

HDD library functions

Definition in file libhdd.h.


Data Structure Documentation

◆ t_hddFilesystem

struct t_hddFilesystem

Definition at line 41 of file libhdd.h.

Data Fields
char name[32]

Filesystem name

char filename[40]

Filename which can be used with fXioMount

u32 size

Total filesystem size, in mega-bytes

int formatted

1 if filesystem is formatted, 0 otherwise

u32 freeSpace

Reported free space, in mega-bytes

int fileSystemGroup

Filesystem group (either system, common or application)

◆ t_hddInfo

struct t_hddInfo

Definition at line 57 of file libhdd.h.

Data Fields
u32 hddSize

Total size of the HDD in mega-bytes

u32 hddFree

Free space on the HDD in mega-bytes

u32 hddMaxPartitionSize

The maximum size allowed for a single partition, in mega-bytes