Told you it was tricky!!
Let's see now... We could also store the disc address of the start of
the directory in the filehandle.
Then we examine the FAT to see if the file starting at that block
looks like a directory, and contains the target directory entry.
If it does, we extract the ".." entry (do FAT directories have and
analogue of ".." entries?) and keep going up the tree until we find
the root, or we have tried too hard.
Once we hit the root we will have collected a full path name for the
file, so we just do lots of lookups to get it into the caches.
Ugh.
I might just do that first step (find_ino) and offer it as as an
experimental patch to the growing number of people who have asked for
nfs exporting of FAT filesystems, and see how reliable it is in
practice.
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/