* inodes in dirread
@ 2024-01-05 18:50 Eric Van Hensbergen
2024-01-06 1:52 ` Eric Van Hensbergen
0 siblings, 1 reply; 2+ messages in thread
From: Eric Van Hensbergen @ 2024-01-05 18:50 UTC (permalink / raw)
To: v9fs; +Cc: Christian Schoenebeck, asmadeus
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.
-eric
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: inodes in dirread
2024-01-05 18:50 inodes in dirread Eric Van Hensbergen
@ 2024-01-06 1:52 ` Eric Van Hensbergen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Van Hensbergen @ 2024-01-06 1:52 UTC (permalink / raw)
To: v9fs; +Cc: Christian Schoenebeck, asmadeus
On Fri, Jan 05, 2024 at 12:50:57PM -0600, Eric Van Hensbergen wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-06 1:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05 18:50 inodes in dirread Eric Van Hensbergen
2024-01-06 1:52 ` Eric Van Hensbergen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox