diff options
author | lulf@carrot.studby.ntnu.no <lulf@carrot.studby.ntnu.no> | 2008-01-05 01:08:49 +0100 |
---|---|---|
committer | lulf@carrot.studby.ntnu.no <lulf@carrot.studby.ntnu.no> | 2008-01-05 01:08:49 +0100 |
commit | 44b39b3039b1e65dae3238943e52ae185413881e (patch) | |
tree | 0428758cf634615ea3a7f0ce649d048fbf058c0b | |
parent | 057a40463753a55f48007d6eb21ed1afb0439208 (diff) |
- Add description of the functionality of the filesystem.
-rwxr-xr-x | src/mp3_vnops.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mp3_vnops.c b/src/mp3_vnops.c index 2215a28..bb59b88 100755 --- a/src/mp3_vnops.c +++ b/src/mp3_vnops.c @@ -34,6 +34,11 @@ static int mp3_readdir (const char *path, void *buf, fuse_fill_dir_t filler, filler (buf, "..", NULL, 0); filler (buf, "MP3Z", NULL, 0); + /* + * 1. Parse the path. + * 2. Find the mp3s that matches the tags given from the path. + * 3. Return the list of those mp3s. + */ return 0; } @@ -41,7 +46,14 @@ static int mp3_open (const char *path, struct fuse_file_info *fi) { if (strcmp (path, "/MP3Z") == 0) return 0; - + /* + * 1. Have a lookup cache for names?. + * Parse Genre, Album, Artist etc. + * 2. Find MP3s that match. XXX what do we do with duplicates? just + * return the first match? + * 3. Put the mnode of the mp3 in our cache. + * 4. Signal in mnode that the mp3 is being read? + */ return -ENOENT; } @@ -53,6 +65,11 @@ static int mp3_read (const char *path, char *buf, size_t size, off_t offset, return 12; } + /* + * 1. Find the mnode given the path. If not in cache, read through mp3 + * list to find it. + * 2. Read the offset of the mp3 and return the data. + */ return -ENOENT; } |