Commit graph

108 commits

Author SHA1 Message Date
Jens Arnold
6333f796d0 Shortnames must be uppercase...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5994 a1c6a512-1295-4272-9138-f99709370657
2005-02-16 22:21:45 +00:00
Jens Arnold
f213afacbe For shortname creation, replace most illegal characters by underscores instead of removing them, thereby lowering the chance to create a blank (illegal) name. Spaces and control chars are still removed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5991 a1c6a512-1295-4272-9138-f99709370657
2005-02-16 21:56:20 +00:00
Jens Arnold
dbf7f51cf2 Preserve the longname extension as much as possible for shortname creation. Randomise the last 4 chars of the name part instead, but only if there is a clash.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5988 a1c6a512-1295-4272-9138-f99709370657
2005-02-16 20:45:56 +00:00
Jens Arnold
2580cdfe73 Simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5766 a1c6a512-1295-4272-9138-f99709370657
2005-02-03 22:58:50 +00:00
Jens Arnold
72612ea6b8 Fixed max_cluster calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5765 a1c6a512-1295-4272-9138-f99709370657
2005-02-03 22:33:16 +00:00
Jörg Hohensohn
dc7534bdb2 preparations for hotswapping MMC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5701 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 21:32:16 +00:00
Jean-Philippe Bernardy
34d2a71fdd More int -> long
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 14:26:24 +00:00
Jean-Philippe Bernardy
36b8e13f47 int -> long where needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5642 a1c6a512-1295-4272-9138-f99709370657
2005-01-23 23:20:40 +00:00
Jens Arnold
d851d98c81 Fixed some warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5537 a1c6a512-1295-4272-9138-f99709370657
2005-01-05 00:42:24 +00:00
Jörg Hohensohn
7414687c58 unmount function in preparation for MMC hotswap, more mutexing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5536 a1c6a512-1295-4272-9138-f99709370657
2005-01-05 00:09:04 +00:00
Jens Arnold
93660701e6 Multivolume: prevent file rename attempts across volumes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5535 a1c6a512-1295-4272-9138-f99709370657
2005-01-04 23:20:02 +00:00
Jörg Hohensohn
50dba1fad0 modify fat cache entries atomic, this was potentially unsafe
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5534 a1c6a512-1295-4272-9138-f99709370657
2005-01-04 23:01:25 +00:00
Jens Arnold
316ae187aa Correct handling of FAT16 root directory when it does not start on a pseudo cluster boundary. Fixed some places where the cluster number can become negative. Significant code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5527 a1c6a512-1295-4272-9138-f99709370657
2005-01-03 07:59:49 +00:00
Jörg Hohensohn
19934a1110 killed a warning for boxes not supporting FAT16
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5515 a1c6a512-1295-4272-9138-f99709370657
2004-12-28 22:35:10 +00:00
Jörg Hohensohn
da84857631 prepared to mount multiple partitions into one logical file system (most useful for Ondio, internal memory + external MMC)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-12-28 22:16:07 +00:00
Linus Nielsen Feltzing
b109e93054 Removed #include math.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5382 a1c6a512-1295-4272-9138-f99709370657
2004-11-04 14:25:40 +00:00
Jörg Hohensohn
fb0739bdf0 cleaned out parts of bpb which we don't use
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5274 a1c6a512-1295-4272-9138-f99709370657
2004-10-14 07:52:08 +00:00
Jörg Hohensohn
540b19dc50 panic on write behind partition, too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5171 a1c6a512-1295-4272-9138-f99709370657
2004-10-05 07:55:31 +00:00
Jörg Hohensohn
7f7afe434b FAT16 support for the Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5114 a1c6a512-1295-4272-9138-f99709370657
2004-09-23 21:43:43 +00:00
Linus Nielsen Feltzing
e0e0140f4e Bug fix: renaming a directory could cause a name clash. New feature: rename() can now move files/directories as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5008 a1c6a512-1295-4272-9138-f99709370657
2004-08-22 11:28:24 +00:00
Jens Arnold
0ceaa5e365 Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
2004-08-17 01:45:48 +00:00
Linus Nielsen Feltzing
0185ee7e4c Removed nasty lvalue cast
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4934 a1c6a512-1295-4272-9138-f99709370657
2004-07-24 17:20:21 +00:00
Linus Nielsen Feltzing
bc9397d1fa New function: rmdir(). Also some changes in the fat code, to track the parent directory in opendir(), to be able to delete directories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4509 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:58:29 +00:00
Linus Nielsen Feltzing
ef1698e648 Added cluster size to the disk debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4469 a1c6a512-1295-4272-9138-f99709370657
2004-04-06 00:17:02 +00:00
Linus Nielsen Feltzing
da115da486 Oops. Wrong arguments to memset(). Thanks to Mike Wilson for pointing that out.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4274 a1c6a512-1295-4272-9138-f99709370657
2004-01-26 10:14:46 +00:00
Linus Nielsen Feltzing
7c75386a83 Ooops. Forgot to clear the newly allocated cluster in mkdir()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4242 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 19:05:49 +00:00
Linus Nielsen Feltzing
54353e04b1 Second bug in mkdir() :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4241 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 15:56:19 +00:00
Linus Nielsen Feltzing
60b1c4bbe1 Implemented the mkdir() function in the FAT32 driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4238 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 14:30:59 +00:00
Linus Nielsen Feltzing
d9e8bfee75 Patch #791531 by Barry McIntosh, fake time stamps for file creation/updates on Players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4005 a1c6a512-1295-4272-9138-f99709370657
2003-11-03 00:59:04 +00:00
Linus Nielsen Feltzing
bfe9c5b608 Killed a warning (and a bug I introduced in the last commit)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3994 a1c6a512-1295-4272-9138-f99709370657
2003-10-28 22:23:33 +00:00
Linus Nielsen Feltzing
b47fa98b91 Better error reporting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3986 a1c6a512-1295-4272-9138-f99709370657
2003-10-26 11:16:15 +00:00
Linus Nielsen Feltzing
68125796b8 Another go at the disk-full FAT driver fix. Now it skips the reserved sectors at all times.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3847 a1c6a512-1295-4272-9138-f99709370657
2003-07-19 00:34:22 +00:00
Linus Nielsen Feltzing
41249b7059 Fixed a bug that included the reserved clusters 0 and 1 in the search for available clusters. That could in some cases lead to a bogus disk-full error.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3836 a1c6a512-1295-4272-9138-f99709370657
2003-07-16 22:28:24 +00:00
Linus Nielsen Feltzing
474c4b5427 Now handles a full disk a little better, and it doesn't trust the fsinfo anymore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3755 a1c6a512-1295-4272-9138-f99709370657
2003-06-19 12:03:36 +00:00
Hardeep Sidhu
fc9b28d0a9 Small seek optimization -- begin seek at last read cluster if possible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3720 a1c6a512-1295-4272-9138-f99709370657
2003-06-03 18:04:22 +00:00
Linus Nielsen Feltzing
cc6183e73c More detailed error codes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3605 a1c6a512-1295-4272-9138-f99709370657
2003-04-24 18:33:32 +00:00
Björn Stenberg
a9302fd1e8 Corrected win1251 -> iso 8859-5 conversion (Alex)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3532 a1c6a512-1295-4272-9138-f99709370657
2003-04-11 08:39:12 +00:00
Linus Nielsen Feltzing
16d1a68b33 update_fat_entry() set the wrong cache line dirty if bpb_resvdseccnt wasn't divisible by 32 (didn't compensate for the reserved sector count)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3379 a1c6a512-1295-4272-9138-f99709370657
2003-03-04 13:50:23 +00:00
Linus Nielsen Feltzing
96f519999d Enhanced error codes for better error tracking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3341 a1c6a512-1295-4272-9138-f99709370657
2003-02-26 03:02:49 +00:00
Björn Stenberg
38bc30b0d6 The dir code is now reentrant.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3184 a1c6a512-1295-4272-9138-f99709370657
2003-01-29 12:33:23 +00:00
Björn Stenberg
184fd55411 Directories can now be renamed too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3167 a1c6a512-1295-4272-9138-f99709370657
2003-01-27 09:32:17 +00:00
Mats Lidell
74cc9e41fa Remove use of rockbox-mode.el in local variables list.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Björn Stenberg
1855cdb7f0 Added table for converting unicode page 1 and 2 into ISO 8859-2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3123 a1c6a512-1295-4272-9138-f99709370657
2003-01-17 10:08:48 +00:00
Björn Stenberg
4b6a1f2566 Made unicode2iso() static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3087 a1c6a512-1295-4272-9138-f99709370657
2003-01-14 15:07:19 +00:00
Björn Stenberg
32bfc9940c Added unicode conversion from cyrillic, greek, hebrew, arabic and thai.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3086 a1c6a512-1295-4272-9138-f99709370657
2003-01-14 14:49:19 +00:00
Björn Stenberg
b17fe5a727 Added recalculation of free disk space. Press PLAY in Debug->Disk Info->Free to run it. Takes ~30 sec on my 40GB Toshiba.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2968 a1c6a512-1295-4272-9138-f99709370657
2002-12-09 15:39:32 +00:00
Björn Stenberg
ac88b9e5ff Fixed warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2876 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:55:08 +00:00
Björn Stenberg
b5184d761b Added creation and last-modified timestamps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2875 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:51:46 +00:00
Björn Stenberg
282c819a19 Removed some debug output.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2858 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:58:45 +00:00
Björn Stenberg
c5f5be565e Added rename()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:48:50 +00:00