optimize mount settings to noticeably improve speed

This commit is contained in:
Christopher Roy Bratusek 2012-03-14 23:51:41 +01:00
parent b9f0d9d8de
commit 5db3c9fa13
3 changed files with 10 additions and 3 deletions

View File

@ -183,13 +183,13 @@ static void AddPartition(sec_t sector, int device, int type, int *devnum)
if(type == T_FAT)
{
if(!fatMount(mount, disc, sector, 2, 128))
if(!fatMount(mount, disc, sector, 8, 64))
return;
fatGetVolumeLabel(mount, part[device][*devnum].name);
}
else if (type == T_NTFS)
{
if(!ntfsMount(mount, disc, sector, 2, 128, NTFS_DEFAULT | NTFS_RECOVER))
if(!ntfsMount(mount, disc, sector, 8, 64, NTFS_DEFAULT | NTFS_RECOVER))
return;
const char *name = ntfsGetVolumeName(mount);
@ -201,7 +201,7 @@ static void AddPartition(sec_t sector, int device, int type, int *devnum)
}
else if (type == T_EXT2)
{
if(!ext2Mount(mount, disc, sector, 2, 128, EXT2_FLAG_64BITS | EXT2_FLAG_JOURNAL_DEV_OK))
if(!ext2Mount(mount, disc, sector, 8, 64, EXT2_FLAG_64BITS | EXT2_FLAG_JOURNAL_DEV_OK))
return;
const char *name = ext2GetVolumeName(mount);

View File

@ -188,6 +188,12 @@ extern const u32 sd_usb_active_png_size;
extern const u8 sd_usb_inactive_png[];
extern const u32 sd_usb_inactive_png_size;
extern const u8 dvd_active_png[];
extern const u32 dvd_active_png_size;
extern const u8 all_active_png[];
extern const u32 all_active_png_size;
extern const u8 wii_active_png[];
extern const u32 wii_active_png_size;

View File

@ -11,6 +11,7 @@
- No longer show the HBC if it's installed
- changing pages in an empty category no longer crashes
- compiled with devkitppc 25-1 and libogc 1.8.10
- Accessing devices formatted as EXT2/3/4 should now be noticeably faster
//rev36:
- HBF is now OpenSource!