On 2010-07-01, at 14:41, Neil Brown <neilb@xxxxxxx> wrote: > I think that it is a little ugly that filesystem uuid extraction is so > closely tied to filehandle manipulation. They are certainly related, and we > certainly need to be able to get the filesystem uuid directly from the > filesystem, but given that filehandle -> fd mapping doesn't (and shouldn't) > use the uuid, the fact that fd/name -> filehandle mapping does return the > uuid looks like it is simply piggy backing some functionality on the side, > rather than creating a properly designed and general interface. I disagree. Getting the UUID as part of the filehandle avoids an extra system call for the client and avoids the need for some other non-standard interface to get the UUID. I'd like to be able to use this interface to implement the distributed open call proposed by the POSIX HECWG. This allows one client to do the path traversal, broadcast the file handle to the (maybe) 1M processes in the job via MPI, and then the other clients can open the file by handle without doing 1M times the full path traversal (which might be 10's of RPCs per process). Cheers, Andreas > -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html