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
Björn Stenberg
eee2c01697
Added longname handling to fat_remove().
...
Added proper 0xffff padding of last longname entry.
add_dir_entry() now makes sure shortname is unique.
Changed update_file_size() to use dir-as-file handling.
Simplified create_dos_name() since we never use shortnames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2853 a1c6a512-1295-4272-9138-f99709370657
2002-11-18 11:58:43 +00:00
Björn Stenberg
c442a68322
Cleaned up dir handling further.
...
Fixed a bug where a new dir cluster wasn't completely cleared.
Added freecount calculation if unset.
Removed a couple of signed mul/divs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2851 a1c6a512-1295-4272-9138-f99709370657
2002-11-15 11:20:33 +00:00
Björn Stenberg
1f214f2732
Directories are now handled as files, using fat_readwrite() instead of ata_read/write_sector().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2844 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:16:32 +00:00
Björn Stenberg
6fb512aba5
Added disk space to Info menu item. (Players press + to see it.)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2837 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 11:32:26 +00:00
Björn Stenberg
11a09e632c
close() now does not truncate the file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 10:21:51 +00:00
Björn Stenberg
a5e77d8f94
Fat writing update. File creation now works, though still only short filenames.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2790 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 16:09:28 +00:00
Björn Stenberg
46ddacf533
Fat32 write updates: Nixed some bugs. Basic file creation now works. Todo: Long filenames and extensive test cases.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2742 a1c6a512-1295-4272-9138-f99709370657
2002-10-22 15:06:08 +00:00
Björn Stenberg
b7b48fea02
Snapshot of file writing code. Bugs remain. Only short names are supported yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
2002-10-20 22:50:58 +00:00
Björn Stenberg
113fffaa86
Don't save settings on disk if it has no partition table
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1712 a1c6a512-1295-4272-9138-f99709370657
2002-08-13 13:21:55 +00:00
Björn Stenberg
827cee37d7
struct bpb does not have to be global
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@832 a1c6a512-1295-4272-9138-f99709370657
2002-05-30 19:47:56 +00:00
Björn Stenberg
e5992829d7
Fixed compiler warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@574 a1c6a512-1295-4272-9138-f99709370657
2002-05-14 12:28:48 +00:00
Björn Stenberg
924164e6a7
Changed to global 'bpb' struct
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@411 a1c6a512-1295-4272-9138-f99709370657
2002-05-03 15:35:51 +00:00
Björn Stenberg
c7f7934e8f
Added disk/partition handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@405 a1c6a512-1295-4272-9138-f99709370657
2002-05-03 11:59:53 +00:00
Björn Stenberg
3df8650a97
Renamed get_bpb() into fat_mount() and added it to the API.
...
Fixed a bug in fat_seek().
Added comment about unicode->iso8859-1 for longnames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@312 a1c6a512-1295-4272-9138-f99709370657
2002-04-29 08:03:59 +00:00
Björn Stenberg
24a2de64ac
Added longname handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@276 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 22:32:37 +00:00
Björn Stenberg
0ea9f3772a
Added fat_seek()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@271 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 20:03:05 +00:00
Björn Stenberg
e8bcc01edf
Added fat_open() and fat_read().
...
Renamed BLOCK_SIZE to SECTOR_SIZE.
Added #ifdef DISK_WRITE to all write code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@269 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 19:37:41 +00:00
Björn Stenberg
5661b2332f
Cluster chaining now works.
...
Moved all implementation details in .h to .c file.
Changed all printfs to DEBUG macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@256 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 01:25:22 +00:00
Björn Stenberg
1dff4b65f7
FAT update
...
Added fat test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@254 a1c6a512-1295-4272-9138-f99709370657
2002-04-26 16:44:58 +00:00
Björn Stenberg
c6773e1436
Moved driver to 'drivers' subdir
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@189 a1c6a512-1295-4272-9138-f99709370657
2002-04-23 09:13:23 +00:00