inodes in dirread
Eric Van Hensbergen
maintainerAnyone know what the inode in dirent is actually used for during a dirread? Right now we are hashing the qid to an inode number, but I was planning on re-writing this so we can let the client allocate inode numbers for itself to guarentee uniqueness. However, that would mean I'd have to allocate inode numbers is dirread (if we aren't using the cache) and then immediately discarding them which seems wasteful. Puting qid.path there "works" but I'm not sure what assumptions I'm breaking.
-eric
Eric Van Hensbergen
maintainerQuoted 9 lines · Eric Van Hensbergen
Anyone know what the inode in dirent is actually used for during a dirread? Right now we are hashing the qid to an inode number, but I was planning on re-writing this so we can let the client allocate inode numbers for itself to guarentee uniqueness. However, that would mean I'd have to allocate inode numbers is dirread (if we aren't using the cache) and then immediately discarding them which seems wasteful. Puting qid.path there "works" but I'm not sure what assumptions I'm breaking.
Disregard, I ended up backing out that particular line of inquiry and just sticking with the modified qid.paths in the i_ino for now.
-eric