summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-07-18- Import mfs_notify subroutines for registering for events on system files. TheUlf Lilleengen
intent is to be able to detect when a musicfs folder or file is changed or modified in order to update filesystem data.
2009-07-18- Comment unused variable.Ulf Lilleengen
2009-07-18- Remove remnants from pnotify build.Ulf Lilleengen
2008-11-27- Include pnotify in build and link against it in musicfs.Ulf Lilleengen
2008-11-27- Missed fusever and makefile changes in the previous commit.Ulf Lilleengen
- Also put a consistent sorting on header includes: * System includes first * Then, standard C libraries * Then additiona libraries and our own headers.
2008-11-27- Use a fusever header to define fuse version across all files.Ulf Lilleengen
- Add a Makefile in the src directory and use the main makefile as a toplevel make.
2008-10-05- Don't (re-)scan the collection initiallyKjetil Ørbekk
(Scanning is really annoying with huge collections. Touch /.config to re-scan)
2008-09-14- Allow empty genre id3-fieldKjetil Ørbekk
2008-09-11- Fixed fsync("/.config")Kjetil Ørbekk
- Done with TODO for v0.1 :)
2008-09-11- Fixed /GenresKjetil Ørbekk
- Added track number on songs in Genres/*/*
2008-09-11- Fixed track numbers in /Albums/*Kjetil Ørbekk
2008-09-08- Finished db_cleanup code.Kjetil Ørbekk
Removing paths from .config should now work nicely :)
2008-09-08- Emacs modelinesKjetil Ørbekk
2008-09-08- Put db_path into musicfs.hKjetil Ørbekk
- Got ride of some warnings
2008-09-07- Cleanup mfs_cleanup_dbKjetil Ørbekk
2008-09-07- Moved mfs_cleanup_db code to its own fileKjetil Ørbekk
2008-09-07- Fix serialization of debug printouts.Ulf Lilleengen
- Add a MFS_DB_LOCK/UNLOCK which handles locking of the SQLITE database if SQLITE_THREADED compile option is not specified. - Remove duplicate open/close of database during initial scan.
2008-09-07- Handle closed twice.Ulf Lilleengen
2008-09-05- Added mfs_cleanup_db, to remove inactive pathsKjetil Ørbekk
2008-09-04- Added -s and -d as default optionsKjetil Ørbekk
(through fuse_opt tricks)
2008-09-03- Implement flush and fsync.Ulf Lilleengen
2008-09-02- Added active-flag to database (convenient when scanning paths)Kjetil Ørbekk
- Disable active-flag on old directories
2008-09-02- Fixed handling of empty tagsKjetil Ørbekk
(in contrast to non-existing ones)
2008-08-19- Fixed x bit on directoriesKjetil Ørbekk
2008-08-18- Simplify some messy code.Ulf Lilleengen
2008-08-18Revert "- Add comment to bug."Ulf Lilleengen
This reverts commit c2289bd5e2bdb03230d75b7a05a3f053c1bafe6e.
2008-08-18- Remember to lseek to correct offset.Ulf Lilleengen
- Fix a bug where SEEK_CUR was used instead of SEEK_SET. This was also the reason I didn't add lseek when reading a file in the first place, because i got buggy behaviour. So, using SEEK_SET corrected this.
2008-08-18- s/warn/DEBUG.Ulf Lilleengen
- Add suggstions to TODO. - Change enum starting point.
2008-08-18- Use enum instead of defines for lookup datatypes.Ulf Lilleengen
2008-08-17- Check for NULL pointer when looking up HOME path.Ulf Lilleengen
2008-08-17- Remember to free memory after path lookup.Ulf Lilleengen
- Don't close if fd is 0, which it might be if not assigned.
2008-08-17- Simplify mfs_file_data_from_path a lot and rename it to mfs_realpath, whichUlf Lilleengen
have the objective of looking up the real file path, given the musicfs path. Some thoughts: Instead of creating a function for each operation we want to do, this change adds a mfs_lookup_path which allocates a buffer with the real path of the file we're looking for. This way, we can do the operations we want on the path externally instead, which is a lot simpler when using it. This also gets rid of the file_data data structure, and just use a pointer pointer where one is to allocate the real path.
2008-08-16- Use the fi->fh filehandle to store the file descriptor, so we don't need toUlf Lilleengen
run an sql query each time we want to read a block from the file. This should improve performance significantly. Currently, it's not done for config file reading, but if not for performance reasons, we should perhaps change it to be "correct" in the file system way of doing things.
2008-08-16- Simplify mfs_get_home path, using asprintf, and remove potential usage of NULLUlf Lilleengen
pointers. - Don't use memory that might be NULL pointer after allocating trackno, as well as check if malloc returned NULL in escape.
2008-08-15- Reloading config when .config is changedKjetil Ørbekk
2008-08-15Changed dbpath to ~/.mfs.dbKjetil Ørbekk
2008-08-15- Removed the musicfolder argumentKjetil Ørbekk
2008-08-15- Fixed traversingKjetil Ørbekk
- Added a special flag to give the lookup functions access to the DB handle.
2008-08-15- Added lookup functions for scanning pathsKjetil Ørbekk
2008-08-15- Fixed insert_path and reload_configKjetil Ørbekk
2008-08-15- Implemented mfs_reload_configKjetil Ørbekk
2008-08-15- Moved $HOME function to mfs_subrKjetil Ørbekk
2008-08-15- Helper function to add music pathKjetil Ørbekk
2008-08-15- Aligned codeKjetil Ørbekk
2008-08-15- More vnops (to make vim behave)Kjetil Ørbekk
2008-08-15- mfs_read for /.configKjetil Ørbekk
2008-08-15- Started working on ~/.mfsrc as config fileKjetil Ørbekk
2008-08-15- Added vnops needed for writing .configKjetil Ørbekk
2008-08-15- Renamed /paths to /.configKjetil Ørbekk
2008-08-14- Added /pathsKjetil Ørbekk
- Return an informative message when reading from it