* [9fans] p9p qid.vers for directories
@ 2005-12-09 16:30 erik quanstrom
0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2005-12-09 16:30 UTC (permalink / raw)
To: 9fans
there are several places in p9p where the code depends on this
sort of code:
if (!(oldqid.path = newqid.path && qid.vers == newqid.vers))
process_changed_directory();
however on solaris and linux, qid.vers is always zero and qid.path depends
only on the device and inode. so if i cd $dir ; touch newfile this test
oldqid.path = newqid.path && qid.vers == newqid.vers
evaluates to zero.
what i would like to do is modify _p9dir to do something with
qid.vers, at least for directories. it doesn't seem as if there's an easy
way to get at the file version¹ out of the linux kernel, though there
are some patches floating around for linux 2.4. i was thinking that
perhaps using the directory mtime or ctime would be a good start.
any ideas?
- erik
¹ file versions are mantained at least reiserfs /usr/include/linux/reiserfs_fs.h:912
on linux 2.6.14.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] p9p qid.vers for directories
@ 2005-12-09 16:30 erik quanstrom
0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2005-12-09 16:30 UTC (permalink / raw)
To: 9fans
there are several places in p9p where the code depends on this
sort of code:
if (!(oldqid.path = newqid.path && qid.vers == newqid.vers))
process_changed_directory();
however on solaris and linux, qid.vers is always zero and qid.path depends
only on the device and inode. so if i cd $dir ; touch newfile this test
oldqid.path = newqid.path && qid.vers == newqid.vers
evaluates to zero.
what i would like to do is modify _p9dir to do something with
qid.vers, at least for directories. it doesn't seem as if there's an easy
way to get at the file version¹ out of the linux kernel, though there
are some patches floating around for linux 2.4. i was thinking that
perhaps using the directory mtime or ctime would be a good start.
any ideas?
- erik
¹ file versions are mantained at least reiserfs /usr/include/linux/reiserfs_fs.h:912
on linux 2.6.14.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-09 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 16:30 [9fans] p9p qid.vers for directories erik quanstrom
-- strict thread matches above, loose matches on Subject: below --
2005-12-09 16:30 erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).