Jens Arnold
|
fd83f521a9
|
Adding entries to the FAT16 root dir still failed under certain conditions. The shortcut check cannot work the way it was implemented - removed it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6363 a1c6a512-1295-4272-9138-f99709370657
|
2005-04-27 01:23:31 +00:00 |
|
Jens Arnold
|
e4e1f2c0dd
|
create_dos_name() return value was meaningless.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6333 a1c6a512-1295-4272-9138-f99709370657
|
2005-04-23 13:15:25 +00:00 |
|
Jens Arnold
|
a07c73532c
|
Bugfixes: (1) add_dir_entry() always appended new entries, although the code intended to reuse deleted entries. New code reuses deleted entries whenever possible. (2) If the code could not extend the dir to append new entries (FAT16 root dir or disk full), it failed because of (1). (3) Even if reuse had worked, it would never have reused entry 0. (4) Shortname char 0xE5->0x05 replacement to avoid treatment as free entry was done for all chars although it should only be done for the first. The 0x05->0xE5 replacement on read was missing altogether. (5) Obey directory size limit (65536 entries == 2 MB). Improvements: (1) The (undocumented) flags used by WinNT derivates to store the case of a shortname's name and extension part are now supported for reading. (2) smaller code size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6332 a1c6a512-1295-4272-9138-f99709370657
|
2005-04-22 22:26:13 +00:00 |
|
Jean-Philippe Bernardy
|
d1c459c746
|
Little fix, when debug is disabled clusterchain length was incorrectly computed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6163 a1c6a512-1295-4272-9138-f99709370657
|
2005-03-07 14:38:30 +00:00 |
|
Jean-Philippe Bernardy
|
06ded52f3c
|
long policy fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6082 a1c6a512-1295-4272-9138-f99709370657
|
2005-02-28 10:52:28 +00:00 |
|
Jean-Philippe Bernardy
|
a83214d16f
|
couple of fixes for 16 bits archs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6073 a1c6a512-1295-4272-9138-f99709370657
|
2005-02-27 20:44:26 +00:00 |
|
Jean-Philippe Bernardy
|
5da99ed570
|
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6071 a1c6a512-1295-4272-9138-f99709370657
|
2005-02-26 21:18:05 +00:00 |
|
Jean-Philippe Bernardy
|
fc19445ba0
|
more long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
|
2005-02-25 18:50:16 +00:00 |
|
Jean-Philippe Bernardy
|
907ba5851b
|
more long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6053 a1c6a512-1295-4272-9138-f99709370657
|
2005-02-25 09:11:29 +00:00 |
|
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 |
|