diff options
author | Dave Chapman <dave@dchapman.com> | 2006-12-16 13:49:14 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-12-16 13:49:14 +0000 |
commit | 945be68825c598287a996581274fffad807edde7 (patch) | |
tree | eaf9aff1006f55d76f510964a1e0eaa5baaad0a5 | |
parent | 97784625d040b87ee7cce44b14939341dd04317f (diff) | |
download | rockbox-945be68825c598287a996581274fffad807edde7.tar.gz rockbox-945be68825c598287a996581274fffad807edde7.zip |
Default to 512-byte sectors on POSIX platforms - this allows testing of ipodpatcher with a file instead of a real device
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11774 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | tools/ipodpatcher/ipodio-posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ipodpatcher/ipodio-posix.c b/tools/ipodpatcher/ipodio-posix.c index 7035bf2322..dd0a2b041b 100644 --- a/tools/ipodpatcher/ipodio-posix.c +++ b/tools/ipodpatcher/ipodio-posix.c | |||
@@ -56,7 +56,8 @@ int ipod_open(HANDLE* dh, char* diskname, int* sector_size) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | if(ioctl(*dh,IPOD_SECTORSIZE_IOCTL,sector_size) < 0) { | 58 | if(ioctl(*dh,IPOD_SECTORSIZE_IOCTL,sector_size) < 0) { |
59 | fprintf(stderr,"[ERR] ioctl() call to get sector size failed\n"); | 59 | *sector_size=512; |
60 | fprintf(stderr,"[ERR] ioctl() call to get sector size failed, defaulting to %d\n",*sector_size); | ||
60 | } | 61 | } |
61 | return 0; | 62 | return 0; |
62 | } | 63 | } |