diff options
| author | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-09-07 13:24:31 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-09-07 13:24:31 +0200 |
| commit | c74bd922870214c48ac5d032f13b0751ef32be59 (patch) | |
| tree | 4482c8fc302a3fa35a8aed82e2e10c0b92584c8f /src/mfs_vnops.c | |
| parent | 2cbb65112e9fb20a3532e0cf7b8ba49a44e0b024 (diff) | |
- Fix serialization of debug printouts.
- 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.
Diffstat (limited to 'src/mfs_vnops.c')
| -rwxr-xr-x | src/mfs_vnops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mfs_vnops.c b/src/mfs_vnops.c index edd1414..03e5118 100755 --- a/src/mfs_vnops.c +++ b/src/mfs_vnops.c @@ -34,6 +34,7 @@ #include <sys/param.h> #include <sys/uio.h> #include <unistd.h> +#include <pthread.h> #include <tag_c.h> #include <musicfs.h> @@ -228,7 +229,7 @@ static int mfs_truncate(const char *path, off_t size) if (mfsrc == NULL) return (-ENOMEM); res = truncate(mfsrc, size); - DEBUG("truncated %s with result: %d\n", mfsrc, res) + DEBUG("truncated %s with result: %d\n", mfsrc, res); free(mfsrc); return (res); } @@ -390,7 +391,7 @@ mfs_run(int argc, char **argv) if (fuse_opt_parse(&args, NULL, NULL, musicfs_opt_proc) != 0) exit (1); - mfs_initscan(); + mfs_init(); ret = 0; ret = fuse_main(args.argc, args.argv, &mfs_ops, NULL); |
