summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-12-16 13:49:14 +0000
committerDave Chapman <dave@dchapman.com>2006-12-16 13:49:14 +0000
commit945be68825c598287a996581274fffad807edde7 (patch)
treeeaf9aff1006f55d76f510964a1e0eaa5baaad0a5 /tools
parent97784625d040b87ee7cce44b14939341dd04317f (diff)
downloadrockbox-945be68825c598287a996581274fffad807edde7.tar.gz
rockbox-945be68825c598287a996581274fffad807edde7.tar.bz2
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
Diffstat (limited to 'tools')
-rw-r--r--tools/ipodpatcher/ipodio-posix.c3
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)
}
if(ioctl(*dh,IPOD_SECTORSIZE_IOCTL,sector_size) < 0) {
- fprintf(stderr,"[ERR] ioctl() call to get sector size failed\n");
+ *sector_size=512;
+ fprintf(stderr,"[ERR] ioctl() call to get sector size failed, defaulting to %d\n",*sector_size);
}
return 0;
}