summaryrefslogtreecommitdiff
path: root/firmware/common/file.c (follow)
Commit message (Collapse)AuthorAge
* Do the dircache operation first to block properly when necessary.Miika Pekkarinen2006-03-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9356 a1c6a512-1295-4272-9138-f99709370657
* Boost open() performance on platforms with dircache. Tagcache initialMiika Pekkarinen2006-03-28
| | | | | | | scanning now over 50% faster than before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9306 a1c6a512-1295-4272-9138-f99709370657
* TAB policed.Jens Arnold2006-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8887 a1c6a512-1295-4272-9138-f99709370657
* Change rename() to set errno to EXDEV if a rename is attempted across volumes.Dan Everton2006-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8883 a1c6a512-1295-4272-9138-f99709370657
* More compact & straight-forward headbytes handling.Jens Arnold2005-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8255 a1c6a512-1295-4272-9138-f99709370657
* Now the file corruption bug when reading & writing the same file isMiika Pekkarinen2005-12-16
| | | | | | | hopefully fully fixed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8251 a1c6a512-1295-4272-9138-f99709370657
* Fixed a file system driver caching bug corrupting files on certain situationsMiika Pekkarinen2005-12-13
| | | | | | | (when reading and writing the same file). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8231 a1c6a512-1295-4272-9138-f99709370657
* Implemented directory caching. No more waiting for disk to spin up whileMiika Pekkarinen2005-10-07
| | | | | | | | browsing when cache is enabled (system -> disk -> enable directory cache). Cache building on boot is transparent except the first boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7588 a1c6a512-1295-4272-9138-f99709370657
* preparations for hotswapping MMCJörg Hohensohn2005-01-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5701 a1c6a512-1295-4272-9138-f99709370657
* int -> long where neededJean-Philippe Bernardy2005-01-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5643 a1c6a512-1295-4272-9138-f99709370657
* prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn2004-12-28
| | | | | | useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: Do only flush the sector buffer after writing head bytes if it ↵Jens Arnold2004-11-17
| | | | | | really needs to be. The old code did flush always, causing the huge slowdown of fprintf() and other places writing byte-wise git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5413 a1c6a512-1295-4272-9138-f99709370657
* void* can't be offset, gcc should not allows thisJörg Hohensohn2004-10-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5147 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: open() now handles O_TRUNC correctly (this was the real cause for ↵Jens Arnold2004-09-06
| | | | | | the .playlist_control corruption) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5048 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: renaming a directory could cause a name clash. New feature: ↵Linus Nielsen Feltzing2004-08-22
| | | | | | rename() can now move files/directories as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5008 a1c6a512-1295-4272-9138-f99709370657
* The pathname argument for open() is declared const, so copy it has to be copiedJens Arnold2004-07-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4894 a1c6a512-1295-4272-9138-f99709370657
* No need to call fat_truncate() to delete the file, fat_remove() frees all ↵Linus Nielsen Feltzing2004-04-16
| | | | | | clusters anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4508 a1c6a512-1295-4272-9138-f99709370657
* You can't open() a directory as a file (at least not for writing)Linus Nielsen Feltzing2004-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4359 a1c6a512-1295-4272-9138-f99709370657
* Empty file/dir names are now rejected by open() and mkdir()Linus Nielsen Feltzing2004-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4303 a1c6a512-1295-4272-9138-f99709370657
* my take at fixing the simulator warnings by adding mode_t, size_t, ssize_tDaniel Stenberg2003-12-08
| | | | | | | and off_t git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
* Added dynamic playlists. ON+PLAY->Playlist on a track, directory, or ↵Hardeep Sidhu2003-07-01
| | | | | | playlist from file browser to see available options. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3796 a1c6a512-1295-4272-9138-f99709370657
* Renamed flush() to fsync() to be more in line with POSIX/unixBjörn Stenberg2003-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3766 a1c6a512-1295-4272-9138-f99709370657
* Slightly better handling of disk-full situationsLinus Nielsen Feltzing2003-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
* Update fileoffset and cacheoffset on error.Björn Stenberg2003-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3556 a1c6a512-1295-4272-9138-f99709370657
* Added the filesize() functionLinus Nielsen Feltzing2003-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3473 a1c6a512-1295-4272-9138-f99709370657
* Previous change broke read after seek. Reverted that change and added ↵Hardeep Sidhu2003-03-15
| | | | | | temporary fix in flush_cache to make sure we are on correct sector before writing to disk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3448 a1c6a512-1295-4272-9138-f99709370657
* Make sure we are on correct sector after lseek. This fixes the queue file ↵Hardeep Sidhu2003-03-14
| | | | | | corruption bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3443 a1c6a512-1295-4272-9138-f99709370657
* flush_cache() failure should still return error.Björn Stenberg2003-03-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3433 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: If head bytes were read but sector read failed, return head byte ↵Björn Stenberg2003-03-12
| | | | | | count instead of error. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3432 a1c6a512-1295-4272-9138-f99709370657
* Killed compiling error on debug buildsLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657
* Killed a warningLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3423 a1c6a512-1295-4272-9138-f99709370657
* Zagor added the flush() functionLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3416 a1c6a512-1295-4272-9138-f99709370657
* rename() didn't close the file if the target name exists, and didn't return ↵Linus Nielsen Feltzing2003-02-26
| | | | | | | | | a negative error code Enhanced the return codes to make it easier to track panics. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3340 a1c6a512-1295-4272-9138-f99709370657
* Lame debug outputLinus Nielsen Feltzing2003-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3322 a1c6a512-1295-4272-9138-f99709370657
* Directories can now be renamed too.Björn Stenberg2003-01-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3167 a1c6a512-1295-4272-9138-f99709370657
* Remove use of rockbox-mode.el in local variables list.Mats Lidell2003-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
* Use flush_cache() when writing headbytes to disk to make sure we are on the ↵Hardeep Sidhu2002-12-19
| | | | | | correct sector. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3023 a1c6a512-1295-4272-9138-f99709370657
* Added rename()Björn Stenberg2002-11-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
* Flush sector cache before truncating.Björn Stenberg2002-11-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2849 a1c6a512-1295-4272-9138-f99709370657
* creat() now includes the O_TRUNC flag.Björn Stenberg2002-11-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2846 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic: Replaced dozens of openfiles[fd] with 'file' pointers.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2831 a1c6a512-1295-4272-9138-f99709370657
* Bugfix: Flags work better when they're binary...Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2830 a1c6a512-1295-4272-9138-f99709370657
* Added support for O_CREAT, O_APPEND and O_TRUNC.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2828 a1c6a512-1295-4272-9138-f99709370657
* Added ftruncate().Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2827 a1c6a512-1295-4272-9138-f99709370657
* Added support for O_RDWR and lseek() while writing.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2826 a1c6a512-1295-4272-9138-f99709370657
* Bug fix for previous commit: write() always returned 0 on even sector writes.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2822 a1c6a512-1295-4272-9138-f99709370657
* close() now does not truncate the file.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657
* Corrected return value check.Björn Stenberg2002-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2807 a1c6a512-1295-4272-9138-f99709370657
* Bugfix: lseek() did not invalidate sector cache when seeking to start of file.Björn Stenberg2002-11-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2803 a1c6a512-1295-4272-9138-f99709370657
* Added remove()Björn Stenberg2002-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2801 a1c6a512-1295-4272-9138-f99709370657