2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
10 # $Id: super.h 577 2004-09-14 14:41:46Z pixel $
16 #define PFS_SUPER_SECTOR 8192
17 #define PFS_SUPER_BACKUP_SECTOR 8193
19 int checkZoneSize(u32 zone_size
);
20 u32
getBitmapSectors(int zoneScale
, u32 partSize
);
21 u32
getBitmapBocks(int scale
, u32 mainsize
);
22 int formatSub(block_device
*blockDev
, int fd
, u32 sub
, u32 reserved
, u32 scale
, u32 fragment
);
23 int _format(block_device
*blockDev
, int fd
, int zonesize
, int fragment
);
24 int updateSuperBlock(pfs_mount_t
*pfsMount
, pfs_super_block
*superblock
, u32 sub
);
25 int mountSuperBlock(pfs_mount_t
*pfsMount
);