Re: [9fans] 9p fids and references

2009-07-31 Thread hugo rivera
OK, thanks. 2009/7/30, roger peppe : > 2009/7/30 hugo rivera : > > [...] there's no way two different files point to the > > > same data structure (but maybe two different fids do?) so reference > > counting is unnecessary, am I right? > > > no, because a file can be opened several times. > whe

Re: [9fans] 9p fids and references

2009-07-30 Thread roger peppe
2009/7/30 hugo rivera : > [...] there's no way two different files point to the > same data structure (but maybe two different fids do?) so reference > counting is unnecessary, am I right? no, because a file can be opened several times. when you open a file you get a new fid. so if you've got res

[9fans] 9p fids and references

2009-07-30 Thread hugo rivera
Hi, I am trying to implement a toy fs using the 9p protocol. I've been reading Francisco's intro to plan 9 and section 5 of the manual pages, and I have to say I am surprised because I am actually learning from them; plan 9 man pages are really readable :-) (not to mention Francisco's fine intro).