mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Patch #1 from FS#10633 (Nano 2G developments) by Michael Sparmann - Allows targets to set a different sector size than 512 for the storage system. Should not affect any other target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
244359775b
commit
14eb02d347
3 changed files with 6 additions and 1 deletions
|
|
@ -495,6 +495,7 @@ Peter Schlenker
|
|||
Dan Davison
|
||||
David Kauffmann
|
||||
Carsten Schreiter
|
||||
Michael Sparmann
|
||||
|
||||
The libmad team
|
||||
The wavpack team
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ int disk_sector_multiplier = 1;
|
|||
struct partinfo* disk_init(IF_MD_NONVOID(int drive))
|
||||
{
|
||||
int i;
|
||||
unsigned char sector[512];
|
||||
unsigned char sector[SECTOR_SIZE];
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
/* For each drive, start at a different position, in order not to destroy
|
||||
the first entry of drive 0.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@
|
|||
#include "mv.h" /* for volume definitions */
|
||||
#include "config.h"
|
||||
|
||||
/* This value can be overwritten by a target in config-[target].h, but
|
||||
that behaviour is still experimental */
|
||||
#ifndef SECTOR_SIZE
|
||||
#define SECTOR_SIZE 512
|
||||
#endif
|
||||
|
||||
/* Number of bytes reserved for a file name (including the trailing \0).
|
||||
Since names are stored in the entry as UTF-8, we won't be able to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue