From bbc60fc5a6ef982d93671950e8ffb902f6c507ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Thu, 14 Aug 2008 18:32:56 +0200 Subject: - Renamed /paths to /.config --- README | 2 +- src/mfs_vnops.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index d70046c..a32a6e2 100755 --- a/README +++ b/README @@ -25,7 +25,7 @@ bug of some kind. I don't really know why :'( 4. Add music directory: -Follow the instructions in /paths. +Edit /.config and follow the instructions. Dependencies diff --git a/src/mfs_vnops.c b/src/mfs_vnops.c index 4a11c2c..de5146a 100755 --- a/src/mfs_vnops.c +++ b/src/mfs_vnops.c @@ -41,7 +41,7 @@ char musicpath[MAXPATHLEN]; // = "/home/lulf/dev/musicfs/music"; char *logpath = "/home/lulf/dev/musicfs/musicfs.log"; -/* Information when reading /paths */ +/* Information when reading /.config */ const char* paths_info = "# This is the paths I've registered for your music collection.\n" "# Add additional paths on their own line in this file, and I'll\n" @@ -62,7 +62,7 @@ static int mfs_getattr (const char *path, struct stat *stbuf) return 0; } - if (strcmp(path, "/paths") == 0) { + if (strcmp(path, "/.config") == 0) { stbuf->st_mode = S_IFREG | 0744; stbuf->st_nlink = 2; stbuf->st_size = strlen(paths_info); @@ -115,7 +115,7 @@ static int mfs_readdir (const char *path, void *buf, fuse_fill_dir_t filler, filler(buf, "Genres", NULL, 0); filler(buf, "Tracks", NULL, 0); filler(buf, "Albums", NULL, 0); - filler(buf, "paths", NULL, 0); + filler(buf, ".config", NULL, 0); return (0); } @@ -150,7 +150,7 @@ static int mfs_open (const char *path, struct fuse_file_info *fi) fd.fd = -1; fd.found = 0; - if (strcmp(path, "/paths") == 0) + if (strcmp(path, "/.config") == 0) return (0); int status = mfs_file_data_for_path(path, &fd); @@ -184,7 +184,7 @@ static int mfs_read (const char *path, char *buf, size_t size, off_t offset, int len; size_t bytes; - if (strcmp(path, "/paths") == 0) { + if (strcmp(path, "/.config") == 0) { DEBUG("read from paths, offset(%d), size(%d)\n", offset, size); len = strlen(paths_info); if (size > (len - offset)) -- cgit v1.2.3