I am developing a FUSE application that accepts a directory with mp3 and mounts the file system in another directory with the following structure (according to their tag):
Artist1
|
|
....
Artist2
|
....
Artist3
.....
I am using sqlite3 database to link links to real files. Elements of artists and albums are folders, and elements of tracks are links to real ones.
I created folders for artists and albums. But now I have a problem.
I have it:
static int getattr(...) {
....
else if ( level == 0 || level == 1 || level == 2 )
{
stbuf->st_mode = S_IFDIR | 0755;
stbuf->st_nlink = 2;
lstat(path, stbuf);
}
else if (level == 3) {
stbuf->st_mode = S_IFLNK | 0755;
stbuf->st_nlink = 2;
lstat(path, stbuf);
}
.....
}
And now, when I get a message in the tracks directory y that tells me that the function is not implemented (link functions). What function do I need to implement to find out where the link is? Or where do I need to fill in the direction of the pointer?
Thank!